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

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: Created 7 years, 8 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
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/browser/shell_integration.h" 13 #include "chrome/browser/shell_integration.h"
14 #include "chrome/common/web_apps.h" 14 #include "chrome/common/web_apps.h"
15 15
16 #if defined(OS_WIN)
17 #include "chrome/installer/util/shell_util.h"
18 #endif
19
16 namespace extensions { 20 namespace extensions {
17 class Extension; 21 class Extension;
18 } 22 }
19 23
20 namespace gfx { 24 namespace gfx {
21 class ImageFamily; 25 class ImageFamily;
22 } 26 }
23 27
24 namespace web_app { 28 namespace web_app {
25 29
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 std::string GetWMClassFromAppName(std::string app_name); 95 std::string GetWMClassFromAppName(std::string app_name);
92 #endif 96 #endif
93 97
94 namespace internals { 98 namespace internals {
95 99
96 #if defined(OS_WIN) 100 #if defined(OS_WIN)
97 bool CheckAndSaveIcon(const base::FilePath& icon_file, 101 bool CheckAndSaveIcon(const base::FilePath& icon_file,
98 const gfx::ImageFamily& image); 102 const gfx::ImageFamily& image);
99 103
100 std::vector<base::FilePath> GetShortcutPaths( 104 std::vector<base::FilePath> GetShortcutPaths(
101 const ShellIntegration::ShortcutLocations& creation_locations); 105 const ShellIntegration::ShortcutLocations& creation_locations,
106 const ShellUtil::ShellChange install_level);
gab 2013/04/26 15:21:03 I don't think ShellUtil:: is available on non-OS_W
calamity 2013/04/29 07:20:05 Done.
102 #endif 107 #endif
103 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,
(...skipping 16 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

Powered by Google App Engine
This is Rietveld 408576698