| Index: ui/arc/notification/arc_custom_notification_view.h
|
| diff --git a/ui/arc/notification/arc_custom_notification_view.h b/ui/arc/notification/arc_custom_notification_view.h
|
| index 6c25b720f4372a31f463015dec24367839672f60..c10f3a2310a776e79e81af00f21b0890dfc0a6f1 100644
|
| --- a/ui/arc/notification/arc_custom_notification_view.h
|
| +++ b/ui/arc/notification/arc_custom_notification_view.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "ui/arc/notification/arc_custom_notification_item.h"
|
| +#include "ui/aura/window_observer.h"
|
| #include "ui/views/controls/button/button.h"
|
| #include "ui/views/controls/native/native_view_host.h"
|
|
|
| @@ -26,6 +27,7 @@ namespace arc {
|
|
|
| class ArcCustomNotificationView : public views::NativeViewHost,
|
| public views::ButtonListener,
|
| + public aura::WindowObserver,
|
| public ArcCustomNotificationItem::Observer {
|
| public:
|
| ArcCustomNotificationView(ArcCustomNotificationItem* item,
|
| @@ -34,6 +36,7 @@ class ArcCustomNotificationView : public views::NativeViewHost,
|
|
|
| private:
|
| void CreateFloatingCloseButton();
|
| + void UpdatePreferredSize();
|
|
|
| // views::NativeViewHost
|
| void ViewHierarchyChanged(
|
| @@ -43,6 +46,12 @@ class ArcCustomNotificationView : public views::NativeViewHost,
|
| // views::ButtonListener
|
| void ButtonPressed(views::Button* sender, const ui::Event& event) override;
|
|
|
| + // aura::WindowObserver
|
| + void OnWindowBoundsChanged(aura::Window* window,
|
| + const gfx::Rect& old_bounds,
|
| + const gfx::Rect& new_bounds) override;
|
| + void OnWindowDestroying(aura::Window* window) override;
|
| +
|
| // ArcCustomNotificationItem::Observer
|
| void OnItemDestroying() override;
|
| void OnItemPinnedChanged() override;
|
|
|