| 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 2e7122266df12208847c13931dfb30ecdf68a3dd..b166c19b2bbe389451f95eb39e90124eac38a6cc 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;
|
| @@ -70,6 +72,12 @@ class ChromeNativeAppWindowViews
|
| const extensions::AppWindow::CreateParams& create_params) override;
|
|
|
| private:
|
| + // Ensures that Chrome app icon is created.
|
| + 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_;
|
| @@ -83,6 +91,10 @@ class ChromeNativeAppWindowViews
|
| std::unique_ptr<ExtensionKeybindingRegistryViews>
|
| extension_keybinding_registry_;
|
|
|
| + // Contains the default Chrome app icon. It is used in case custom icon for
|
| + // extension app window is not set or as a part of composite image.
|
| + std::unique_ptr<extensions::ChromeAppIcon> app_icon_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews);
|
| };
|
|
|
|
|