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

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

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: rework Created 7 years, 3 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // them as a separate application. 103 // them as a separate application.
104 std::string GetWMClassFromAppName(std::string app_name); 104 std::string GetWMClassFromAppName(std::string app_name);
105 #endif 105 #endif
106 106
107 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. 107 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts.
108 string16 GetAppShortcutsSubdirName(); 108 string16 GetAppShortcutsSubdirName();
109 109
110 namespace internals { 110 namespace internals {
111 111
112 #if defined(OS_WIN) 112 #if defined(OS_WIN)
113 // Returns the Windows user-level shortcut paths that are specified in
114 // |creation_locations|.
113 std::vector<base::FilePath> GetShortcutPaths( 115 std::vector<base::FilePath> GetShortcutPaths(
114 const ShellIntegration::ShortcutLocations& creation_locations); 116 const ShellIntegration::ShortcutLocations& creation_locations);
115 #endif 117 #endif
116 118
117 // Implemented for each platform, does the platform specific parts of creating 119 // Implemented for each platform, does the platform specific parts of creating
118 // shortcuts. Used internally by CreateShortcutsOnFileThread. 120 // shortcuts. Used internally by CreateShortcutsOnFileThread.
119 // |shortcut_data_path| is where to store any resources created for the 121 // |shortcut_data_path| is where to store any resources created for the
120 // shortcut, and is also used as the UserDataDir for platform app shortcuts. 122 // shortcut, and is also used as the UserDataDir for platform app shortcuts.
121 // |shortcut_info| contains info about the shortcut to create, and 123 // |shortcut_info| contains info about the shortcut to create, and
122 // |creation_locations| contains information about where to create them. 124 // |creation_locations| contains information about where to create them.
(...skipping 24 matching lines...) Expand all
147 149
148 // Sanitizes |name| and returns a version of it that is safe to use as an 150 // Sanitizes |name| and returns a version of it that is safe to use as an
149 // on-disk file name . 151 // on-disk file name .
150 base::FilePath GetSanitizedFileName(const string16& name); 152 base::FilePath GetSanitizedFileName(const string16& name);
151 153
152 } // namespace internals 154 } // namespace internals
153 155
154 } // namespace web_app 156 } // namespace web_app
155 157
156 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 158 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698