Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3141)

Unified Diff: chrome/browser/ui/extensions/shell_window.h

Issue 11316292: Add app.window.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/shell_window.h
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
index 0a7a43ffe80681434da1d7e5af5a82a103abd914..544d2bebea7a0a7834a99608f2961d104107fda8 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -76,6 +76,9 @@ class ShellWindow : public content::NotificationObserver,
const GURL& url,
const CreateParams& params);
+ // Specifies a url for the launcher icon.
+ void SetLauncherIconUrl(const GURL& icon_url);
+
// Convert draggable regions in raw format to SkRegion format. Caller is
// responsible for deleting the returned SkRegion instance.
static SkRegion* RawDraggableRegionsToSkRegion(
@@ -87,6 +90,7 @@ class ShellWindow : public content::NotificationObserver,
content::WebContents* web_contents() const { return web_contents_.get(); }
Profile* profile() const { return profile_; }
const gfx::Image& app_icon() const { return app_icon_; }
+ const GURL& launcher_icon_url() { return launcher_icon_url_; }
BaseWindow* GetBaseWindow();
gfx::NativeWindow GetNativeWindow() {
@@ -211,6 +215,10 @@ class ShellWindow : public content::NotificationObserver,
// Used for loading app_icon_.
scoped_ptr<ImageLoadingTracker> app_icon_loader_;
+ // Icon URL to be used for setting the launcher icon. If empty, the app icon
+ // should be used.
+ GURL launcher_icon_url_;
+
scoped_ptr<NativeAppWindow> native_app_window_;
DISALLOW_COPY_AND_ASSIGN(ShellWindow);

Powered by Google App Engine
This is Rietveld 408576698