| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ | 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/message_center/views/message_view.h" | 9 #include "ui/message_center/views/message_view.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 gfx::Size CalculatePreferredSize() const override; | 49 gfx::Size CalculatePreferredSize() const override; |
| 50 void Layout() override; | 50 void Layout() override; |
| 51 bool HasFocus() const override; | 51 bool HasFocus() const override; |
| 52 void RequestFocus() override; | 52 void RequestFocus() override; |
| 53 void OnPaint(gfx::Canvas* canvas) override; | 53 void OnPaint(gfx::Canvas* canvas) override; |
| 54 bool OnKeyPressed(const ui::KeyEvent& event) override; | 54 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 55 void ChildPreferredSizeChanged(View* child) override; | 55 void ChildPreferredSizeChanged(View* child) override; |
| 56 bool HandleAccessibleAction(const ui::AXActionData& action) override; | 56 bool HandleAccessibleAction(const ui::AXActionData& action) override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 friend class ArcNotificationContentViewTest; |
| 59 friend class ArcNotificationViewTest; | 60 friend class ArcNotificationViewTest; |
| 60 | 61 |
| 61 // The view for the custom content. Owned by view hierarchy. | 62 // The view for the custom content. Owned by view hierarchy. |
| 62 views::View* contents_view_ = nullptr; | 63 views::View* contents_view_ = nullptr; |
| 63 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; | 64 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; |
| 64 | 65 |
| 65 std::unique_ptr<views::Painter> focus_painter_; | 66 std::unique_ptr<views::Painter> focus_painter_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); | 68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace arc | 71 } // namespace arc |
| 71 | 72 |
| 72 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ | 73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ |
| OLD | NEW |