| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CUSTOM_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void AttachSurface(); | 79 void AttachSurface(); |
| 80 void ActivateToast(); | 80 void ActivateToast(); |
| 81 void StartControlButtonsColorAnimation(); | 81 void StartControlButtonsColorAnimation(); |
| 82 bool ShouldUpdateControlButtonsColor() const; | 82 bool ShouldUpdateControlButtonsColor() const; |
| 83 | 83 |
| 84 // views::NativeViewHost | 84 // views::NativeViewHost |
| 85 void ViewHierarchyChanged( | 85 void ViewHierarchyChanged( |
| 86 const ViewHierarchyChangedDetails& details) override; | 86 const ViewHierarchyChangedDetails& details) override; |
| 87 void Layout() override; | 87 void Layout() override; |
| 88 void OnPaint(gfx::Canvas* canvas) override; | 88 void OnPaint(gfx::Canvas* canvas) override; |
| 89 void OnKeyEvent(ui::KeyEvent* event) override; | |
| 90 void OnGestureEvent(ui::GestureEvent* event) override; | |
| 91 void OnMouseEntered(const ui::MouseEvent& event) override; | 89 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 92 void OnMouseExited(const ui::MouseEvent& event) override; | 90 void OnMouseExited(const ui::MouseEvent& event) override; |
| 93 void OnFocus() override; | 91 void OnFocus() override; |
| 94 void OnBlur() override; | 92 void OnBlur() override; |
| 95 views::FocusTraversable* GetFocusTraversable() override; | 93 views::FocusTraversable* GetFocusTraversable() override; |
| 96 bool OnMousePressed(const ui::MouseEvent& event) override; | 94 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 97 | 95 |
| 98 // views::ButtonListener | 96 // views::ButtonListener |
| 99 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 97 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 100 | 98 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 bool in_layout_ = false; | 146 bool in_layout_ = false; |
| 149 | 147 |
| 150 std::unique_ptr<gfx::LinearAnimation> control_button_color_animation_; | 148 std::unique_ptr<gfx::LinearAnimation> control_button_color_animation_; |
| 151 | 149 |
| 152 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 150 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 153 }; | 151 }; |
| 154 | 152 |
| 155 } // namespace arc | 153 } // namespace arc |
| 156 | 154 |
| 157 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 155 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |