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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // them as a separate application. | 90 // them as a separate application. |
91 std::string GetWMClassFromAppName(std::string app_name); | 91 std::string GetWMClassFromAppName(std::string app_name); |
92 #endif | 92 #endif |
93 | 93 |
94 namespace internals { | 94 namespace internals { |
95 | 95 |
96 #if defined(OS_WIN) | 96 #if defined(OS_WIN) |
97 bool CheckAndSaveIcon(const base::FilePath& icon_file, | 97 bool CheckAndSaveIcon(const base::FilePath& icon_file, |
98 const gfx::ImageFamily& image); | 98 const gfx::ImageFamily& image); |
99 | 99 |
| 100 // Returns the Windows user-level shortcut paths that are specified in |
| 101 // |creation_locations|. |
100 std::vector<base::FilePath> GetShortcutPaths( | 102 std::vector<base::FilePath> GetShortcutPaths( |
101 const ShellIntegration::ShortcutLocations& creation_locations); | 103 const ShellIntegration::ShortcutLocations& creation_locations); |
102 #endif | 104 #endif |
103 | 105 |
104 // Implemented for each platform, does the platform specific parts of creating | 106 // Implemented for each platform, does the platform specific parts of creating |
105 // shortcuts. Used internally by CreateShortcutsOnFileThread. | 107 // shortcuts. Used internally by CreateShortcutsOnFileThread. |
106 // |shortcut_data_path| is where to store any resources created for the | 108 // |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. | 109 // shortcut, and is also used as the UserDataDir for platform app shortcuts. |
108 // |shortcut_info| contains info about the shortcut to create, and | 110 // |shortcut_info| contains info about the shortcut to create, and |
109 // |creation_locations| contains information about where to create them. | 111 // |creation_locations| contains information about where to create them. |
(...skipping 18 matching lines...) Expand all Loading... |
128 | 130 |
129 // Sanitizes |name| and returns a version of it that is safe to use as an | 131 // Sanitizes |name| and returns a version of it that is safe to use as an |
130 // on-disk file name . | 132 // on-disk file name . |
131 base::FilePath GetSanitizedFileName(const string16& name); | 133 base::FilePath GetSanitizedFileName(const string16& name); |
132 | 134 |
133 } // namespace internals | 135 } // namespace internals |
134 | 136 |
135 } // namespace web_app | 137 } // namespace web_app |
136 | 138 |
137 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 139 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
OLD | NEW |