| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class SettingsButton; | 48 class SettingsButton; |
| 49 class SlideHelper; | 49 class SlideHelper; |
| 50 | 50 |
| 51 void CreateFloatingControlButtons(); | 51 void CreateFloatingControlButtons(); |
| 52 void SetSurface(exo::NotificationSurface* surface); | 52 void SetSurface(exo::NotificationSurface* surface); |
| 53 void UpdatePreferredSize(); | 53 void UpdatePreferredSize(); |
| 54 void UpdateControlButtonsVisiblity(); | 54 void UpdateControlButtonsVisiblity(); |
| 55 void UpdatePinnedState(); | 55 void UpdatePinnedState(); |
| 56 void UpdateSnapshot(); | 56 void UpdateSnapshot(); |
| 57 void AttachSurface(); | 57 void AttachSurface(); |
| 58 void ActivateToast(); |
| 58 | 59 |
| 59 // views::NativeViewHost | 60 // views::NativeViewHost |
| 60 void ViewHierarchyChanged( | 61 void ViewHierarchyChanged( |
| 61 const ViewHierarchyChangedDetails& details) override; | 62 const ViewHierarchyChangedDetails& details) override; |
| 62 void Layout() override; | 63 void Layout() override; |
| 63 void OnPaint(gfx::Canvas* canvas) override; | 64 void OnPaint(gfx::Canvas* canvas) override; |
| 64 void OnKeyEvent(ui::KeyEvent* event) override; | 65 void OnKeyEvent(ui::KeyEvent* event) override; |
| 65 void OnGestureEvent(ui::GestureEvent* event) override; | 66 void OnGestureEvent(ui::GestureEvent* event) override; |
| 66 void OnMouseEntered(const ui::MouseEvent& event) override; | 67 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 67 void OnMouseExited(const ui::MouseEvent& event) override; | 68 void OnMouseExited(const ui::MouseEvent& event) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 // Protects from call loops between Layout and OnWindowBoundsChanged. | 116 // Protects from call loops between Layout and OnWindowBoundsChanged. |
| 116 bool in_layout_ = false; | 117 bool in_layout_ = false; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 119 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace arc | 122 } // namespace arc |
| 122 | 123 |
| 123 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 124 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |