OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ |
6 #define CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | 6 #define CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/shell_integration.h" | 11 #include "chrome/browser/shell_integration.h" |
12 | 12 |
13 class TabContents; | 13 class TabContents; |
14 typedef TabContents TabContentsWrapper; | |
15 | 14 |
16 namespace web_app { | 15 namespace web_app { |
17 | 16 |
18 // Extracts shortcut info of given TabContentsWrapper. | 17 // Extracts shortcut info of given TabContents. |
19 void GetShortcutInfoForTab(TabContentsWrapper* tab_contents, | 18 void GetShortcutInfoForTab(TabContents* tab_contents, |
20 ShellIntegration::ShortcutInfo* info); | 19 ShellIntegration::ShortcutInfo* info); |
21 | 20 |
22 // Updates web app shortcut of the TabContentsWrapper. This function checks and | 21 // Updates web app shortcut of the TabContents. This function checks and |
23 // updates web app icon and shortcuts if needed. For icon, the check is based | 22 // updates web app icon and shortcuts if needed. For icon, the check is based |
24 // on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu | 23 // on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu |
25 // and quick launch (as well as pinned shortcut) for shortcut and only | 24 // and quick launch (as well as pinned shortcut) for shortcut and only |
26 // updates (recreates) them if they exits. | 25 // updates (recreates) them if they exits. |
27 void UpdateShortcutForTabContents(TabContentsWrapper* tab_contents); | 26 void UpdateShortcutForTabContents(TabContents* tab_contents); |
28 | 27 |
29 } // namespace web_app | 28 } // namespace web_app |
30 | 29 |
31 #endif // CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | 30 #endif // CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ |
OLD | NEW |