OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
10 | 10 |
| 11 class Profile; |
| 12 |
11 namespace content { | 13 namespace content { |
12 class WebContents; | 14 class WebContents; |
13 } | 15 } |
14 | 16 |
| 17 namespace extensions { |
| 18 class Extension; |
| 19 } |
| 20 |
15 namespace gfx { | 21 namespace gfx { |
16 class ImageFamily; | 22 class ImageFamily; |
17 } | 23 } |
18 | 24 |
19 namespace web_app { | 25 namespace web_app { |
20 | 26 |
21 // Create a shortcut in the given web app data dir, returning the name of the | 27 // Create a shortcut in the given web app data dir, returning the name of the |
22 // created shortcut. | 28 // created shortcut. |
23 base::FilePath CreateShortcutInWebAppDir( | 29 base::FilePath CreateShortcutInWebAppDir( |
24 const base::FilePath& web_app_path, | 30 const base::FilePath& web_app_path, |
25 const ShellIntegration::ShortcutInfo& shortcut_info); | 31 const ShellIntegration::ShortcutInfo& shortcut_info); |
26 | 32 |
| 33 // Update the relaunch details for the given app's window, making the taskbar |
| 34 // group's "Pin to the taskbar" button function correctly. |
| 35 void UpdateRelaunchDetailsForApp(Profile* profile, |
| 36 const extensions::Extension* extension, |
| 37 HWND hwnd); |
| 38 |
27 namespace internals { | 39 namespace internals { |
28 | 40 |
29 bool CheckAndSaveIcon(const base::FilePath& icon_file, | 41 bool CheckAndSaveIcon(const base::FilePath& icon_file, |
30 const gfx::ImageFamily& image); | 42 const gfx::ImageFamily& image); |
31 | 43 |
32 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, | 44 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, |
33 const base::string16& title); | 45 const base::string16& title); |
34 | 46 |
35 } // namespace internals | 47 } // namespace internals |
36 | 48 |
37 } // namespace web_app | 49 } // namespace web_app |
38 | 50 |
39 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ | 51 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
OLD | NEW |