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

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: Add comments to .idl Created 8 years 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 f13fbb95b3185834be8b127c04afc63757e80c9c..7423ae7d781725ab67d21cf51986e39134ef8ef4 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -83,6 +83,9 @@ class ShellWindow : public content::NotificationObserver,
const GURL& url,
const CreateParams& params);
+ // Specifies a url for the launcher icon.
+ void SetAppIconUrl(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(
@@ -95,6 +98,7 @@ class ShellWindow : public content::NotificationObserver,
WindowType window_type() const { return window_type_; }
Profile* profile() const { return profile_; }
const gfx::Image& app_icon() const { return app_icon_; }
+ const GURL& app_icon_url() { return app_icon_url_; }
NativeAppWindow* GetBaseWindow();
gfx::NativeWindow GetNativeWindow();
@@ -221,6 +225,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 app icon. If not empty, app_icon_ will
+ // be fetched and set using this URL.
+ GURL app_icon_url_;
+
scoped_ptr<NativeAppWindow> native_app_window_;
DISALLOW_COPY_AND_ASSIGN(ShellWindow);
« no previous file with comments | « chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698