Chromium Code Reviews| 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_; |