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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const ViewHierarchyChangedDetails& details) override; | 78 const ViewHierarchyChangedDetails& details) override; |
79 void Layout() override; | 79 void Layout() override; |
80 void OnPaint(gfx::Canvas* canvas) override; | 80 void OnPaint(gfx::Canvas* canvas) override; |
81 void OnKeyEvent(ui::KeyEvent* event) override; | 81 void OnKeyEvent(ui::KeyEvent* event) override; |
82 void OnGestureEvent(ui::GestureEvent* event) override; | 82 void OnGestureEvent(ui::GestureEvent* event) override; |
83 void OnMouseEntered(const ui::MouseEvent& event) override; | 83 void OnMouseEntered(const ui::MouseEvent& event) override; |
84 void OnMouseExited(const ui::MouseEvent& event) override; | 84 void OnMouseExited(const ui::MouseEvent& event) override; |
85 void OnFocus() override; | 85 void OnFocus() override; |
86 void OnBlur() override; | 86 void OnBlur() override; |
87 views::FocusTraversable* GetFocusTraversable() override; | 87 views::FocusTraversable* GetFocusTraversable() override; |
| 88 bool OnMousePressed(const ui::MouseEvent& event) override; |
88 | 89 |
89 // views::ButtonListener | 90 // views::ButtonListener |
90 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 91 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
91 | 92 |
92 // aura::WindowObserver | 93 // aura::WindowObserver |
93 void OnWindowBoundsChanged(aura::Window* window, | 94 void OnWindowBoundsChanged(aura::Window* window, |
94 const gfx::Rect& old_bounds, | 95 const gfx::Rect& old_bounds, |
95 const gfx::Rect& new_bounds) override; | 96 const gfx::Rect& new_bounds) override; |
96 void OnWindowDestroying(aura::Window* window) override; | 97 void OnWindowDestroying(aura::Window* window) override; |
97 | 98 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 // Protects from call loops between Layout and OnWindowBoundsChanged. | 133 // Protects from call loops between Layout and OnWindowBoundsChanged. |
133 bool in_layout_ = false; | 134 bool in_layout_ = false; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 136 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace arc | 139 } // namespace arc |
139 | 140 |
140 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 141 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
OLD | NEW |