OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | |
6 #define CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "chrome/browser/shell_integration.h" | |
11 | |
12 namespace content { | |
13 class WebContents; | |
14 } | |
15 | |
16 namespace extensions { | |
17 class Extension; | |
18 } | |
19 | |
20 class Profile; | |
21 | |
22 namespace web_app { | |
23 | |
24 // Extracts shortcut info of the given WebContents. | |
25 void GetShortcutInfoForTab(content::WebContents* web_contents, | |
26 ShellIntegration::ShortcutInfo* info); | |
27 | |
28 // Updates web app shortcut of the WebContents. This function checks and | |
29 // updates web app icon and shortcuts if needed. For icon, the check is based | |
30 // on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu | |
31 // and quick launch (as well as pinned shortcut) for shortcut and only | |
32 // updates (recreates) them if they exits. | |
33 void UpdateShortcutForTabContents(content::WebContents* web_contents); | |
34 | |
35 } // namespace web_app | |
36 | |
37 #endif // CHROME_BROWSER_UI_WEB_APPLICATIONS_WEB_APP_UI_H_ | |
OLD | NEW |