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

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: fix linux Created 7 years, 2 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 IconInfoList* icons); 97 IconInfoList* icons);
98 #endif 98 #endif
99 99
100 #if defined(OS_LINUX) 100 #if defined(OS_LINUX)
101 // Windows that correspond to web apps need to have a deterministic (and 101 // Windows that correspond to web apps need to have a deterministic (and
102 // different) WMClass than normal chrome windows so the window manager groups 102 // different) WMClass than normal chrome windows so the window manager groups
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.
108 string16 GetAppShortcutsSubdirName();
109
110 namespace internals { 107 namespace internals {
111 108
112 #if defined(OS_WIN) 109 #if defined(OS_WIN)
110 // Returns the Windows user-level shortcut paths that are specified in
111 // |creation_locations|.
113 std::vector<base::FilePath> GetShortcutPaths( 112 std::vector<base::FilePath> GetShortcutPaths(
114 const ShellIntegration::ShortcutLocations& creation_locations); 113 const ShellIntegration::ShortcutLocations& creation_locations);
115 #endif 114 #endif
116 115
117 // Implemented for each platform, does the platform specific parts of creating 116 // Implemented for each platform, does the platform specific parts of creating
118 // shortcuts. Used internally by CreateShortcutsOnFileThread. 117 // shortcuts. Used internally by CreateShortcutsOnFileThread.
119 // |shortcut_data_path| is where to store any resources created for the 118 // |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. 119 // shortcut, and is also used as the UserDataDir for platform app shortcuts.
121 // |shortcut_info| contains info about the shortcut to create, and 120 // |shortcut_info| contains info about the shortcut to create, and
122 // |creation_locations| contains information about where to create them. 121 // |creation_locations| contains information about where to create them.
(...skipping 24 matching lines...) Expand all
147 146
148 // Sanitizes |name| and returns a version of it that is safe to use as an 147 // Sanitizes |name| and returns a version of it that is safe to use as an
149 // on-disk file name . 148 // on-disk file name .
150 base::FilePath GetSanitizedFileName(const string16& name); 149 base::FilePath GetSanitizedFileName(const string16& name);
151 150
152 } // namespace internals 151 } // namespace internals
153 152
154 } // namespace web_app 153 } // namespace web_app
155 154
156 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 155 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698