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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // different) WMClass than normal chrome windows so the window manager groups | 89 // different) WMClass than normal chrome windows so the window manager groups |
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 |
| 100 std::vector<base::FilePath> GetShortcutPaths( |
| 101 const ShellIntegration::ShortcutLocations& creation_locations); |
99 #endif | 102 #endif |
100 | 103 |
101 // Implemented for each platform, does the platform specific parts of creating | 104 // Implemented for each platform, does the platform specific parts of creating |
102 // shortcuts. Used internally by CreateShortcutsOnFileThread. | 105 // shortcuts. Used internally by CreateShortcutsOnFileThread. |
103 // |shortcut_data_path| is where to store any resources created for the | 106 // |shortcut_data_path| is where to store any resources created for the |
104 // shortcut, and is also used as the UserDataDir for platform app shortcuts. | 107 // shortcut, and is also used as the UserDataDir for platform app shortcuts. |
105 // |shortcut_info| contains info about the shortcut to create, and | 108 // |shortcut_info| contains info about the shortcut to create, and |
106 // |creation_locations| contains information about where to create them. | 109 // |creation_locations| contains information about where to create them. |
107 bool CreatePlatformShortcuts( | 110 bool CreatePlatformShortcuts( |
108 const base::FilePath& shortcut_data_path, | 111 const base::FilePath& shortcut_data_path, |
(...skipping 16 matching lines...) Expand all Loading... |
125 | 128 |
126 // Sanitizes |name| and returns a version of it that is safe to use as an | 129 // Sanitizes |name| and returns a version of it that is safe to use as an |
127 // on-disk file name . | 130 // on-disk file name . |
128 base::FilePath GetSanitizedFileName(const string16& name); | 131 base::FilePath GetSanitizedFileName(const string16& name); |
129 | 132 |
130 } // namespace internals | 133 } // namespace internals |
131 | 134 |
132 } // namespace web_app | 135 } // namespace web_app |
133 | 136 |
134 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 137 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
OLD | NEW |