| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 gfx::Size CalculatePreferredSize() const override; | 50 gfx::Size CalculatePreferredSize() const override; |
| 51 void Layout() override; | 51 void Layout() override; |
| 52 bool HasFocus() const override; | 52 bool HasFocus() const override; |
| 53 void RequestFocus() override; | 53 void RequestFocus() override; |
| 54 void OnPaint(gfx::Canvas* canvas) override; | 54 void OnPaint(gfx::Canvas* canvas) override; |
| 55 bool OnKeyPressed(const ui::KeyEvent& event) override; | 55 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 56 void ChildPreferredSizeChanged(View* child) override; | 56 void ChildPreferredSizeChanged(View* child) override; |
| 57 bool HandleAccessibleAction(const ui::AXActionData& action) override; | 57 bool HandleAccessibleAction(const ui::AXActionData& action) override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 friend class ArcNotificationContentViewTest; |
| 60 friend class ArcNotificationViewTest; | 61 friend class ArcNotificationViewTest; |
| 61 | 62 |
| 62 // The view for the custom content. Owned by view hierarchy. | 63 // The view for the custom content. Owned by view hierarchy. |
| 63 views::View* contents_view_ = nullptr; | 64 views::View* contents_view_ = nullptr; |
| 64 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; | 65 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; |
| 65 | 66 |
| 66 std::unique_ptr<views::Painter> focus_painter_; | 67 std::unique_ptr<views::Painter> focus_painter_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); | 69 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace arc | 72 } // namespace arc |
| 72 | 73 |
| 73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ | 74 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ |
| OLD | NEW |