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

Unified Diff: ui/aura/window.h

Issue 2222703002: Aura Icon Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Icons To Aura::Window Created 4 years, 4 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 | « no previous file | ui/aura/window.cc » ('j') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 89b24bbf02ac9df8768b67404175cc2578338ff9..41e52cc8877c0398a35011e5ebc244849d633617 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -110,6 +110,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
const base::string16 title() const { return title_; }
void SetTitle(const base::string16& title);
+ const gfx::ImageSkia icon() const { return icon_; }
sky 2016/08/08 19:19:47 We generally do not add state like this to Window
qiangchen 2016/08/09 16:48:40 I encounted some difficulty doing that way. Simply
sky 2016/08/09 19:12:11 You probably want DEFINE_OWNED_WINDOW_PROPERTY_KEY
qiangchen 2016/08/09 21:10:28 Done.
+ void SetIcon(const gfx::ImageSkia& icon);
+
bool transparent() const { return transparent_; }
void SetTransparent(bool transparent);
@@ -497,6 +500,8 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
base::string16 title_;
+ gfx::ImageSkia icon_;
+
// Whether layer is initialized as non-opaque.
bool transparent_;
« no previous file with comments | « no previous file | ui/aura/window.cc » ('j') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698