Chromium Code Reviews| Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.h |
| diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.h b/chrome/browser/ui/views/apps/chrome_native_app_window_views.h |
| index 7809977edc475cd3ca39b9cc762b5472f2a02b6d..75d891f077410e6e88ac90a5a0e1b83580112e8f 100644 |
| --- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.h |
| +++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.h |
| @@ -8,12 +8,14 @@ |
| #include <memory> |
| #include "base/macros.h" |
| +#include "chrome/browser/extensions/chrome_app_icon_delegate.h" |
| #include "extensions/components/native_app_window/native_app_window_views.h" |
| class ExtensionKeybindingRegistryViews; |
| class ChromeNativeAppWindowViews |
| - : public native_app_window::NativeAppWindowViews { |
| + : public native_app_window::NativeAppWindowViews, |
| + public extensions::ChromeAppIconDelegate { |
| public: |
| ChromeNativeAppWindowViews(); |
| ~ChromeNativeAppWindowViews() override; |
| @@ -69,6 +71,12 @@ class ChromeNativeAppWindowViews |
| const extensions::AppWindow::CreateParams& create_params) override; |
| private: |
| + // Ensures that Chrome app icon is created. |
|
msw
2017/06/01 19:47:29
nit: "the Chrome"
khmel
2017/06/01 21:55:46
Done.
|
| + void EnsureAppIconCreated(); |
| + |
| + // extensions::ChromeAppIconDelegate: |
| + void OnIconUpdated(extensions::ChromeAppIcon* icon) override; |
| + |
| // Custom shape of the window. If this is not set then the window has a |
| // default shape, usually rectangular. |
| std::unique_ptr<SkRegion> shape_; |
| @@ -81,6 +89,10 @@ class ChromeNativeAppWindowViews |
| std::unique_ptr<ExtensionKeybindingRegistryViews> |
| extension_keybinding_registry_; |
| + // Contains the default Chrome app icon. It is used in case custom icon for |
|
msw
2017/06/01 19:47:28
nit: "the custom"
khmel
2017/06/01 21:55:46
Done.
|
| + // extension app window is not set or as a part of composite image. |
|
msw
2017/06/01 19:47:29
"the extension", "set, or"
khmel
2017/06/01 21:55:46
Done.
|
| + std::unique_ptr<extensions::ChromeAppIcon> app_icon_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); |
| }; |