| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // views::NativeViewHost | 56 // views::NativeViewHost |
| 57 void ViewHierarchyChanged( | 57 void ViewHierarchyChanged( |
| 58 const ViewHierarchyChangedDetails& details) override; | 58 const ViewHierarchyChangedDetails& details) override; |
| 59 void Layout() override; | 59 void Layout() override; |
| 60 void OnPaint(gfx::Canvas* canvas) override; | 60 void OnPaint(gfx::Canvas* canvas) override; |
| 61 void OnKeyEvent(ui::KeyEvent* event) override; | 61 void OnKeyEvent(ui::KeyEvent* event) override; |
| 62 void OnGestureEvent(ui::GestureEvent* event) override; | 62 void OnGestureEvent(ui::GestureEvent* event) override; |
| 63 void OnMouseEntered(const ui::MouseEvent& event) override; | 63 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 64 void OnMouseExited(const ui::MouseEvent& event) override; | 64 void OnMouseExited(const ui::MouseEvent& event) override; |
| 65 void OnFocus() override; |
| 66 void OnBlur() override; |
| 65 | 67 |
| 66 // views::ButtonListener | 68 // views::ButtonListener |
| 67 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 69 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 68 | 70 |
| 69 // aura::WindowObserver | 71 // aura::WindowObserver |
| 70 void OnWindowBoundsChanged(aura::Window* window, | 72 void OnWindowBoundsChanged(aura::Window* window, |
| 71 const gfx::Rect& old_bounds, | 73 const gfx::Rect& old_bounds, |
| 72 const gfx::Rect& new_bounds) override; | 74 const gfx::Rect& new_bounds) override; |
| 73 void OnWindowDestroying(aura::Window* window) override; | 75 void OnWindowDestroying(aura::Window* window) override; |
| 74 | 76 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 108 |
| 107 // Protects from call loops between Layout and OnWindowBoundsChanged. | 109 // Protects from call loops between Layout and OnWindowBoundsChanged. |
| 108 bool in_layout_ = false; | 110 bool in_layout_ = false; |
| 109 | 111 |
| 110 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 112 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 } // namespace arc | 115 } // namespace arc |
| 114 | 116 |
| 115 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 117 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |