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