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

Unified Diff: components/exo/shell_surface.h

Issue 2900783003: Handle app custom icon via aura::Window property. (Closed)
Patch Set: fix mac compile Created 3 years, 7 months 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/app_icon/test.js ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index d528f11ff73fa9c3b09ef834625cbd1be05f40a2..6991ccafe8a26263c07eeb3c2abae05806826b6e 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -140,9 +140,12 @@ class ShellSurface : public SurfaceDelegate,
// Set whether the surface is always on top.
void SetAlwaysOnTop(bool always_on_top);
- // Set title for surface.
+ // Set title for the surface.
void SetTitle(const base::string16& title);
+ // Set icon for the surface.
+ void SetIcon(const gfx::ImageSkia& icon);
+
// Sets the system modality.
void SetSystemModal(bool system_modal);
@@ -227,6 +230,7 @@ class ShellSurface : public SurfaceDelegate,
bool CanMaximize() const override;
bool CanMinimize() const override;
base::string16 GetWindowTitle() const override;
+ gfx::ImageSkia GetWindowIcon() override;
void SaveWindowPlacement(const gfx::Rect& bounds,
ui::WindowShowState show_state) override;
bool GetSavedWindowPlacement(const views::Widget* widget,
@@ -373,6 +377,7 @@ class ShellSurface : public SurfaceDelegate,
bool shadow_underlay_in_surface_ = true;
bool pending_shadow_underlay_in_surface_ = true;
bool system_modal_ = false;
+ gfx::ImageSkia icon_;
DISALLOW_COPY_AND_ASSIGN(ShellSurface);
};
« no previous file with comments | « chrome/test/data/extensions/platform_apps/app_icon/test.js ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698