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

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: rebase, move app launcher and chrome app strings into the installer 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 94
95 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. 95 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts.
96 string16 GetAppShortcutsSubdirName(); 96 string16 GetAppShortcutsSubdirName();
97 97
98 namespace internals { 98 namespace internals {
99 99
100 #if defined(OS_WIN) 100 #if defined(OS_WIN)
101 bool CheckAndSaveIcon(const base::FilePath& icon_file, 101 bool CheckAndSaveIcon(const base::FilePath& icon_file,
102 const gfx::ImageFamily& image); 102 const gfx::ImageFamily& image);
103 103
104 // Returns the Windows user-level shortcut paths that are specified in
105 // |creation_locations|.
104 std::vector<base::FilePath> GetShortcutPaths( 106 std::vector<base::FilePath> GetShortcutPaths(
105 const ShellIntegration::ShortcutLocations& creation_locations); 107 const ShellIntegration::ShortcutLocations& creation_locations);
106 #endif 108 #endif
107 109
108 // Implemented for each platform, does the platform specific parts of creating 110 // Implemented for each platform, does the platform specific parts of creating
109 // shortcuts. Used internally by CreateShortcutsOnFileThread. 111 // shortcuts. Used internally by CreateShortcutsOnFileThread.
110 // |shortcut_data_path| is where to store any resources created for the 112 // |shortcut_data_path| is where to store any resources created for the
111 // shortcut, and is also used as the UserDataDir for platform app shortcuts. 113 // shortcut, and is also used as the UserDataDir for platform app shortcuts.
112 // |shortcut_info| contains info about the shortcut to create, and 114 // |shortcut_info| contains info about the shortcut to create, and
113 // |creation_locations| contains information about where to create them. 115 // |creation_locations| contains information about where to create them.
(...skipping 18 matching lines...) Expand all
132 134
133 // Sanitizes |name| and returns a version of it that is safe to use as an 135 // Sanitizes |name| and returns a version of it that is safe to use as an
134 // on-disk file name . 136 // on-disk file name .
135 base::FilePath GetSanitizedFileName(const string16& name); 137 base::FilePath GetSanitizedFileName(const string16& name);
136 138
137 } // namespace internals 139 } // namespace internals
138 140
139 } // namespace web_app 141 } // namespace web_app
140 142
141 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 143 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698