Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Side by Side Diff: chrome/browser/web_applications/web_app.h

Issue 14514003: Make OSX App Launcher Launchable from the Dock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase off cl14603002 Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 namespace internals { 94 namespace internals {
95 95
96 #if defined(OS_WIN) 96 #if defined(OS_WIN)
97 bool CheckAndSaveIcon(const base::FilePath& icon_file, 97 bool CheckAndSaveIcon(const base::FilePath& icon_file,
98 const gfx::ImageFamily& image); 98 const gfx::ImageFamily& image);
99 99
100 std::vector<base::FilePath> GetShortcutPaths( 100 std::vector<base::FilePath> GetShortcutPaths(
101 const ShellIntegration::ShortcutLocations& creation_locations); 101 const ShellIntegration::ShortcutLocations& creation_locations);
102 #endif 102 #endif
103 103
104 #if defined(OS_MACOSX)
105 base::FilePath GetAppInstallPath(
106 const ShellIntegration::ShortcutInfo& shortcut_info);
107 #endif
108
104 // Implemented for each platform, does the platform specific parts of creating 109 // Implemented for each platform, does the platform specific parts of creating
105 // shortcuts. Used internally by CreateShortcutsOnFileThread. 110 // shortcuts. Used internally by CreateShortcutsOnFileThread.
106 // |shortcut_data_path| is where to store any resources created for the 111 // |shortcut_data_path| is where to store any resources created for the
107 // shortcut, and is also used as the UserDataDir for platform app shortcuts. 112 // shortcut, and is also used as the UserDataDir for platform app shortcuts.
108 // |shortcut_info| contains info about the shortcut to create, and 113 // |shortcut_info| contains info about the shortcut to create, and
109 // |creation_locations| contains information about where to create them. 114 // |creation_locations| contains information about where to create them.
110 bool CreatePlatformShortcuts( 115 bool CreatePlatformShortcuts(
111 const base::FilePath& shortcut_data_path, 116 const base::FilePath& shortcut_data_path,
112 const ShellIntegration::ShortcutInfo& shortcut_info, 117 const ShellIntegration::ShortcutInfo& shortcut_info,
113 const ShellIntegration::ShortcutLocations& creation_locations); 118 const ShellIntegration::ShortcutLocations& creation_locations);
(...skipping 14 matching lines...) Expand all
128 133
129 // Sanitizes |name| and returns a version of it that is safe to use as an 134 // Sanitizes |name| and returns a version of it that is safe to use as an
130 // on-disk file name . 135 // on-disk file name .
131 base::FilePath GetSanitizedFileName(const string16& name); 136 base::FilePath GetSanitizedFileName(const string16& name);
132 137
133 } // namespace internals 138 } // namespace internals
134 139
135 } // namespace web_app 140 } // namespace web_app
136 141
137 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 142 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | chrome/browser/web_applications/web_app_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698