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 |
(...skipping 19 matching lines...) Expand all Loading... | |
30 const ShortcutInfo& shortcut_info); | 30 const ShortcutInfo& shortcut_info); |
31 | 31 |
32 // Update the relaunch details for the given app's window, making the taskbar | 32 // Update the relaunch details for the given app's window, making the taskbar |
33 // group's "Pin to the taskbar" button function correctly. | 33 // group's "Pin to the taskbar" button function correctly. |
34 void UpdateRelaunchDetailsForApp(Profile* profile, | 34 void UpdateRelaunchDetailsForApp(Profile* profile, |
35 const extensions::Extension* extension, | 35 const extensions::Extension* extension, |
36 HWND hwnd); | 36 HWND hwnd); |
37 | 37 |
38 namespace internals { | 38 namespace internals { |
39 | 39 |
40 // Saves |image| to |icon_file| if the file is outdated and refresh shell's icon | |
41 // cache to ensure correct icon is displayed. Returns true if icon_file is up to | |
42 // date or successfully updated. If |refresh_shell_icon_cache| is true, the | |
43 // shell's icon cache will be refreshed, causing a flicker. Refreshing the icon | |
Matt Giuca
2015/03/25 06:20:52
"and refresh shell's icon cache to ensure correct
calamity
2015/03/26 04:09:52
Done.
| |
44 // cache is not necessary on shortcut creation as the shell wil be notified when | |
Matt Giuca
2015/03/25 06:20:53
nit: wil
calamity
2015/03/26 04:09:52
Done.
| |
45 // the shortcut is created. | |
40 bool CheckAndSaveIcon(const base::FilePath& icon_file, | 46 bool CheckAndSaveIcon(const base::FilePath& icon_file, |
41 const gfx::ImageFamily& image); | 47 const gfx::ImageFamily& image, |
48 bool refresh_shell_icon_cache); | |
42 | 49 |
43 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, | 50 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, |
44 const base::string16& title); | 51 const base::string16& title); |
45 | 52 |
46 } // namespace internals | 53 } // namespace internals |
47 | 54 |
48 } // namespace web_app | 55 } // namespace web_app |
49 | 56 |
50 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ | 57 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
OLD | NEW |