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

Unified Diff: components/exo/shell_surface.h

Issue 2900783003: Handle app custom icon via aura::Window property. (Closed)
Patch Set: nits rebase 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
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index d528f11ff73fa9c3b09ef834625cbd1be05f40a2..1c31de9734fd8b28a00c5748ec30d25ec6d7c6fe 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -154,6 +154,9 @@ class ShellSurface : public SurfaceDelegate,
// Set the application ID for the surface.
void SetApplicationId(const std::string& application_id);
+ // Set icon for the window.
reveman 2017/06/01 18:28:42 // Set icon for the surface. and the function sho
khmel 2017/06/01 21:55:46 Done.
+ static void SetAppIcon(aura::Window* window, const gfx::ImageSkia& icon);
reveman 2017/06/01 18:02:23 Why do we need shell surface API for this? Can we
khmel 2017/06/01 18:08:20 Widget uses WidgetDelegate to resolve the icon (an
reveman 2017/06/01 18:28:42 Not sure this is called today for exo shell surfac
khmel 2017/06/01 21:55:46 Acknowledged.
+
// Start an interactive move of surface.
void Move();
@@ -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);
};

Powered by Google App Engine
This is Rietveld 408576698