OLD | NEW |
---|---|
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 #if defined(TOOLKIT_GTK) | 91 #if defined(TOOLKIT_GTK) |
92 // GTK+ windows that correspond to web apps need to have a deterministic (and | 92 // GTK+ windows that correspond to web apps need to have a deterministic (and |
93 // different) WMClass than normal chrome windows so the window manager groups | 93 // different) WMClass than normal chrome windows so the window manager groups |
94 // them as a separate application. | 94 // them as a separate application. |
95 std::string GetWMClassFromAppName(std::string app_name); | 95 std::string GetWMClassFromAppName(std::string app_name); |
96 #endif | 96 #endif |
97 | 97 |
98 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. | 98 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. |
99 string16 GetAppShortcutsSubdirName(); | 99 string16 GetAppShortcutsSubdirName(); |
100 | 100 |
101 #if defined(OS_WIN) | |
102 // Create a shortcut in the given web app data dir, returning the name of the | |
103 // created shortcut. | |
104 base::FilePath CreateShortcutInWebAppDir( | |
benwells
2013/06/19 09:30:01
Mac does something very similar to this, but in a
koz (OOO until 15th September)
2013/06/20 13:52:23
OK, I moved the functions.
| |
105 const base::FilePath& web_app_path, | |
106 const ShellIntegration::ShortcutInfo& shortcut_info); | |
107 #endif | |
108 | |
101 namespace internals { | 109 namespace internals { |
102 | 110 |
103 #if defined(OS_WIN) | 111 #if defined(OS_WIN) |
104 bool CheckAndSaveIcon(const base::FilePath& icon_file, | 112 bool CheckAndSaveIcon(const base::FilePath& icon_file, |
105 const gfx::ImageFamily& image); | 113 const gfx::ImageFamily& image); |
106 | 114 |
107 std::vector<base::FilePath> GetShortcutPaths( | 115 std::vector<base::FilePath> GetShortcutPaths( |
108 const ShellIntegration::ShortcutLocations& creation_locations); | 116 const ShellIntegration::ShortcutLocations& creation_locations); |
109 #endif | 117 #endif |
110 | 118 |
(...skipping 25 matching lines...) Expand all Loading... | |
136 | 144 |
137 // Sanitizes |name| and returns a version of it that is safe to use as an | 145 // Sanitizes |name| and returns a version of it that is safe to use as an |
138 // on-disk file name . | 146 // on-disk file name . |
139 base::FilePath GetSanitizedFileName(const string16& name); | 147 base::FilePath GetSanitizedFileName(const string16& name); |
140 | 148 |
141 } // namespace internals | 149 } // namespace internals |
142 | 150 |
143 } // namespace web_app | 151 } // namespace web_app |
144 | 152 |
145 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 153 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
OLD | NEW |