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