Home
last modified time | relevance | path

Searched refs:web_app (Results 1 – 25 of 58) sorted by relevance

123

/external/chromium_org/chrome/browser/extensions/
Dconvert_web_app_unittest.cc101 WebApplicationInfo web_app; in TEST() local
102 web_app.title = base::ASCIIToUTF16("Gearpad"); in TEST()
103 web_app.description = in TEST()
105 web_app.app_url = GURL("http://aaronboodman.com/gearpad/"); in TEST()
110 web_app.app_url.Resolve(base::StringPrintf("%i.png", sizes[i]))); in TEST()
111 web_app.icons.push_back(GetIconInfo(icon_url, sizes[i])); in TEST()
115 web_app, GetTestTime(1978, 12, 11, 0, 0, 0, 0), in TEST()
130 EXPECT_EQ(base::UTF16ToUTF8(web_app.title), extension->name()); in TEST()
131 EXPECT_EQ(base::UTF16ToUTF8(web_app.description), extension->description()); in TEST()
132 EXPECT_EQ(web_app.app_url, AppLaunchInfo::GetFullLaunchURL(extension.get())); in TEST()
[all …]
Dconvert_web_app.cc87 const WebApplicationInfo& web_app, in ConvertWebAppToExtension() argument
105 root->SetString(keys::kPublicKey, GenerateKey(web_app.app_url)); in ConvertWebAppToExtension()
106 root->SetString(keys::kName, base::UTF16ToUTF8(web_app.title)); in ConvertWebAppToExtension()
108 root->SetString(keys::kDescription, base::UTF16ToUTF8(web_app.description)); in ConvertWebAppToExtension()
109 root->SetString(keys::kLaunchWebURL, web_app.app_url.spec()); in ConvertWebAppToExtension()
114 for (size_t i = 0; i < web_app.icons.size(); ++i) { in ConvertWebAppToExtension()
115 std::string size = base::StringPrintf("%i", web_app.icons[i].width); in ConvertWebAppToExtension()
135 for (size_t i = 0; i < web_app.icons.size(); ++i) { in ConvertWebAppToExtension()
137 if (web_app.icons[i].data.colorType() == kUnknown_SkColorType) in ConvertWebAppToExtension()
141 base::StringPrintf("%i.png", web_app.icons[i].width)); in ConvertWebAppToExtension()
[all …]
Dcrx_installer.h108 void InstallWebApp(const WebApplicationInfo& web_app);
218 void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app);
/external/chromium_org/chrome/browser/apps/
Dshortcut_manager.cc48 web_app::ShortcutLocations creation_locations; in CreateShortcutsForApp()
54 web_app::APP_MENU_LOCATION_HIDDEN; in CreateShortcutsForApp()
59 web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS; in CreateShortcutsForApp()
62 web_app::CreateShortcuts( in CreateShortcutsForApp()
63 web_app::SHORTCUT_CREATION_AUTOMATED, creation_locations, profile, app); in CreateShortcutsForApp()
132 web_app::UpdateAllShortcuts( in OnExtensionWillBeInstalled()
143 web_app::DeleteAllShortcuts(profile_, extension); in OnExtensionUninstalled()
152 base::Bind(&web_app::internals::DeleteAllShortcutsForProfile, in OnProfileWillBeRemoved()
167 base::Bind(&web_app::UpdateShortcutsForAllApps, in UpdateShortcutsForAllAppsIfNeeded()
/external/chromium_org/chrome/browser/web_applications/
Dweb_app_win.cc136 Append(web_app::internals::GetSanitizedFileName(shortcut_name)). in FindAppShortcutsByProfileAndTitle()
164 const web_app::ShortcutInfo& shortcut_info, in CreateShortcutsInPaths()
166 web_app::ShortcutCreationReason creation_reason, in CreateShortcutsInPaths()
176 web_app::internals::GetIconFilePath(web_app_path, shortcut_info.title); in CreateShortcutsInPaths()
177 if (!web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info.favicon)) { in CreateShortcutsInPaths()
206 std::string app_name(web_app::GenerateApplicationNameFromInfo(shortcut_info)); in CreateShortcutsInPaths()
215 web_app::internals::GetSanitizedFileName(shortcut_info.title)) in CreateShortcutsInPaths()
217 if (creation_reason == web_app::SHORTCUT_CREATION_AUTOMATED) { in CreateShortcutsInPaths()
282 web_app::ShortcutLocations all_shortcut_locations; in GetShortcutLocationsAndDeleteShortcuts()
289 web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS; in GetShortcutLocationsAndDeleteShortcuts()
[all …]
Dupdate_shortcut_worker_win.cc34 namespace web_app { namespace
42 web_app::GetShortcutInfoForTab(web_contents_, &shortcut_info_); in UpdateShortcutWorker()
43 web_app::GetIconsInfo(extensions_tab_helper->web_app_info(), in UpdateShortcutWorker()
45 file_name_ = web_app::internals::GetSanitizedFileName(shortcut_info_.title); in UpdateShortcutWorker()
181 base::FilePath web_app_path = web_app::GetWebAppDataDirectory( in UpdateShortcutsOnFileThread()
193 web_app::internals::GetIconFilePath(web_app_path, shortcut_info_.title); in UpdateShortcutsOnFileThread()
194 web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info_.favicon); in UpdateShortcutsOnFileThread()
202 web_app::GenerateApplicationNameFromURL(shortcut_info_.url)), in UpdateShortcutsOnFileThread()
Dweb_app_unittest.cc46 web_app::ShortcutInfo info; in TEST_F()
47 web_app::GetShortcutInfoForTab(web_contents(), &info); in TEST_F()
59 web_app::GetWebAppDataDirectory(profile_path, "123", GURL())); in TEST_F()
67 base::FilePath result(web_app::GetWebAppDataDirectory( in TEST_F()
Dweb_app.cc74 base::FilePath GetShortcutDataDir(const web_app::ShortcutInfo& shortcut_info) { in GetShortcutDataDir()
75 return web_app::GetWebAppDataDirectory(shortcut_info.profile_path, in GetShortcutDataDir()
82 const web_app::ShortcutInfo& shortcut_info, in UpdateAllShortcutsForShortcutInfo()
87 base::Bind(&web_app::internals::UpdatePlatformShortcuts, in UpdateAllShortcutsForShortcutInfo()
92 void OnImageLoaded(web_app::ShortcutInfo shortcut_info, in OnImageLoaded()
94 web_app::InfoCallback callback, in OnImageLoaded()
118 const web_app::ShortcutInfoCallback& shortcut_info_callback, in IgnoreFileHandlersInfo()
119 const web_app::ShortcutInfo& shortcut_info, in IgnoreFileHandlersInfo()
126 namespace web_app { namespace
210 web_app::ShortcutInfo shortcut_info = in GetInfoForApp()
[all …]
Dweb_app_mac_unittest.mm38 class WebAppShortcutCreatorMock : public web_app::WebAppShortcutCreator {
41 const web_app::ShortcutInfo& shortcut_info)
48 const web_app::ShortcutInfo& shortcut_info,
62 web_app::ShortcutInfo GetShortcutInfo() {
63 web_app::ShortcutInfo info;
98 web_app::ShortcutInfo info_;
110 namespace web_app {
118 SHORTCUT_CREATION_AUTOMATED, web_app::ShortcutLocations()));
202 SHORTCUT_CREATION_AUTOMATED, web_app::ShortcutLocations()));
248 SHORTCUT_CREATION_AUTOMATED, web_app::ShortcutLocations()));
[all …]
Dupdate_shortcut_worker_win.h19 namespace web_app {
70 web_app::IconInfoList unprocessed_icons_;
73 web_app::ShortcutInfo shortcut_info_;
Dweb_app_mac.mm110 // array in web_app.cc.
221 void LaunchShimOnFileThread(const web_app::ShortcutInfo& shortcut_info,
224 base::FilePath shim_path = web_app::GetAppInstallPath(shortcut_info);
231 base::FilePath app_data_dir = web_app::GetWebAppDataDirectory(
256 const web_app::ShortcutInfo& shortcut_info,
258 base::FilePath shortcut_data_dir = web_app::GetWebAppDataDirectory(
260 web_app::internals::UpdatePlatformShortcuts(
266 const web_app::ShortcutInfo& shortcut_info,
275 void RebuildAppAndLaunch(const web_app::ShortcutInfo& shortcut_info) {
298 web_app::GetInfoForApp(extension, profile, base::Bind(&UpdateAndLaunchShim));
[all …]
Dweb_app_chromeos.cc7 namespace web_app { namespace
Dweb_app_win.h25 namespace web_app {
/external/chromium_org/chrome/browser/
Dshell_integration_linux.h51 web_app::ShortcutLocations GetExistingShortcutLocations(
59 web_app::ShortcutLocations GetExistingShortcutLocations(
121 const web_app::ShortcutInfo& shortcut_info,
122 const web_app::ShortcutLocations& creation_locations);
Dshell_integration_linux_unittest.cc171 web_app::ShortcutLocations result = in TEST()
174 EXPECT_EQ(web_app::APP_MENU_LOCATION_NONE, in TEST()
191 web_app::ShortcutLocations result = GetExistingShortcutLocations( in TEST()
194 EXPECT_EQ(web_app::APP_MENU_LOCATION_NONE, in TEST()
212 web_app::ShortcutLocations result = in TEST()
215 EXPECT_EQ(web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, in TEST()
233 web_app::ShortcutLocations result = in TEST()
237 EXPECT_EQ(web_app::APP_MENU_LOCATION_HIDDEN, in TEST()
262 web_app::ShortcutLocations result = GetExistingShortcutLocations( in TEST()
265 EXPECT_EQ(web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, in TEST()
[all …]
Dshell_integration_linux.cc632 web_app::ShortcutLocations GetExistingShortcutLocations( in GetExistingShortcutLocations()
643 web_app::ShortcutLocations GetExistingShortcutLocations( in GetExistingShortcutLocations()
653 web_app::ShortcutLocations locations; in GetExistingShortcutLocations()
669 ? web_app::APP_MENU_LOCATION_HIDDEN in GetExistingShortcutLocations()
670 : web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS; in GetExistingShortcutLocations()
835 std::string wmclass = web_app::GetWMClassFromAppName(app_name); in GetDesktopFileContentsForCommand()
902 const web_app::ShortcutInfo& shortcut_info, in CreateDesktopShortcut()
903 const web_app::ShortcutLocations& creation_locations) { in CreateDesktopShortcut()
916 web_app::APP_MENU_LOCATION_NONE) { in CreateDesktopShortcut()
929 web_app::GenerateApplicationNameFromInfo(shortcut_info); in CreateDesktopShortcut()
[all …]
/external/chromium_org/chrome/browser/ui/views/
Dcreate_application_shortcut_view.cc376 web_app::ShortcutLocations creation_locations; in Accept()
381 web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS : in Accept()
382 web_app::APP_MENU_LOCATION_ROOT; in Accept()
394 web_app::CreateShortcutsWithInfo(web_app::SHORTCUT_CREATION_BY_USER, in Accept()
433 web_app::GetShortcutInfoForTab(web_contents_, &shortcut_info_); in CreateUrlApplicationShortcutView()
437 web_app::GetIconsInfo(app_info, &unprocessed_icons_); in CreateUrlApplicationShortcutView()
522 web_app::GetInfoForApp( in CreateChromeApplicationShortcutView()
544 const web_app::ShortcutInfo& shortcut_info, in OnAppInfoLoaded()
Dcreate_application_shortcut_view.h91 web_app::ShortcutInfo shortcut_info_;
128 web_app::IconInfoList unprocessed_icons_;
150 void OnAppInfoLoaded(const web_app::ShortcutInfo& shortcut_info,
/external/chromium_org/chrome/browser/ui/views/apps/
Dchrome_native_app_window_views_win.h10 namespace web_app {
30 const web_app::ShortcutInfo& shortcut_info);
Dchrome_native_app_window_views_win.cc121 web_app::GenerateApplicationNameFromExtensionId(extension->id()); in InitializeDefaultWindow()
130 web_app::UpdateRelaunchDetailsForApp(profile, extension, hwnd); in InitializeDefaultWindow()
/external/chromium_org/chrome/browser/ui/views/app_list/win/
Dapp_list_service_win.cc169 const web_app::ShortcutLocations& creation_locations) { in CreateAppListShortcuts()
174 web_app::internals::GetShortcutPaths(creation_locations); in CreateAppListShortcuts()
321 web_app::ShortcutLocations shortcut_locations; in CreateShortcut()
325 web_app::APP_MENU_LOCATION_SUBDIR_CHROME; in CreateShortcut()
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_window_property_manager_win.cc65 web_app::GetExtensionIdFromApplicationName(browser->app_name()), in UpdateWindowProperties()
69 web_app::UpdateRelaunchDetailsForApp(profile, extension, hwnd); in UpdateWindowProperties()
/external/chromium_org/chrome/browser/apps/app_shim/
Dapp_shim_interactive_uitest_mac.mm241 web_app::WebAppShortcutCreator shortcut_creator(
242 web_app::GetWebAppDataDirectory(profile()->GetPath(), app->id(), GURL()),
243 web_app::ShortcutInfoForExtensionAndProfile(app, profile()),
255 web_app::UpdateAllShortcuts(base::string16(), profile(), app);
335 web_app::WebAppShortcutCreator shortcut_creator(
336 web_app::GetWebAppDataDirectory(profile()->GetPath(), app->id(), GURL()),
337 web_app::ShortcutInfoForExtensionAndProfile(app, profile()),
/external/chromium_org/chrome/browser/apps/drive/
Ddrive_app_provider_browsertest.cc137 WebApplicationInfo web_app; in InstallUserUrlApp() local
138 web_app.title = base::ASCIIToUTF16("User installed Url app"); in InstallUserUrlApp()
139 web_app.app_url = GURL(url); in InstallUserUrlApp()
146 crx_installer->InstallWebApp(web_app); in InstallUserUrlApp()
/external/chromium_org/chrome/browser/ui/app_list/
Dapp_list_view_delegate.cc87 const web_app::ShortcutInfo& info) { in CreateShortcutInWebAppDir()
91 base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir, info), in CreateShortcutInWebAppDir()
389 web_app::GetWebAppDataDirectory(profile_->GetPath(), in GetShortcutPathForApp()
393 web_app::GetShortcutInfoForApp( in GetShortcutPathForApp()

123