summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_applications/web_app.h
diff options
context:
space:
mode:
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 18:18:05 +0000
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 18:18:05 +0000
commit2d1d16f1498a988a09c74ac33b475dbd428af495 (patch)
treee3bb918d971da1ffdf9548fb2dad468641ee87dc /chrome/browser/web_applications/web_app.h
parent3f3abff5f7332dc24a3b82c90423ceddc3969a55 (diff)
downloadchromium_src-2d1d16f1498a988a09c74ac33b475dbd428af495.zip
chromium_src-2d1d16f1498a988a09c74ac33b475dbd428af495.tar.gz
chromium_src-2d1d16f1498a988a09c74ac33b475dbd428af495.tar.bz2
Remove web_app_ui.[cc|h].
The UpdateShortcutWorker class is windows specific and is moved to its own file. UpdateShortcutForTabContents is moved to web_app_win. GetShortcutInfoForTab is moved to web_app. TBR=sky@chromium.org BUG=356889 Review URL: https://codereview.chromium.org/213113005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_applications/web_app.h')
-rw-r--r--chrome/browser/web_applications/web_app.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h
index 986dcf1..79ea5a5 100644
--- a/chrome/browser/web_applications/web_app.h
+++ b/chrome/browser/web_applications/web_app.h
@@ -17,6 +17,10 @@
class Profile;
+namespace content {
+class WebContents;
+}
+
namespace extensions {
class Extension;
}
@@ -37,6 +41,17 @@ enum ShortcutCreationReason {
typedef base::Callback<void(const ShellIntegration::ShortcutInfo&)>
ShortcutInfoCallback;
+// Extracts shortcut info of the given WebContents.
+void GetShortcutInfoForTab(content::WebContents* web_contents,
+ ShellIntegration::ShortcutInfo* info);
+
+// Updates web app shortcut of the WebContents. This function checks and
+// updates web app icon and shortcuts if needed. For icon, the check is based
+// on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu
+// and quick launch (as well as pinned shortcut) for shortcut and only
+// updates (recreates) them if they exits.
+void UpdateShortcutForTabContents(content::WebContents* web_contents);
+
ShellIntegration::ShortcutInfo ShortcutInfoForExtensionAndProfile(
const extensions::Extension* app,
Profile* profile);