| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 private: | 44 private: |
| 45 class ContentViewDelegate; | 45 class ContentViewDelegate; |
| 46 class ControlButton; | 46 class ControlButton; |
| 47 class EventForwarder; | 47 class EventForwarder; |
| 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 UpdateControlButtonsVisibility(); |
| 55 void UpdatePinnedState(); | 55 void UpdatePinnedState(); |
| 56 void UpdateSnapshot(); | 56 void UpdateSnapshot(); |
| 57 void AttachSurface(); | 57 void AttachSurface(); |
| 58 | 58 |
| 59 // views::NativeViewHost | 59 // views::NativeViewHost |
| 60 void ViewHierarchyChanged( | 60 void ViewHierarchyChanged( |
| 61 const ViewHierarchyChangedDetails& details) override; | 61 const ViewHierarchyChangedDetails& details) override; |
| 62 void Layout() override; | 62 void Layout() override; |
| 63 void OnPaint(gfx::Canvas* canvas) override; | 63 void OnPaint(gfx::Canvas* canvas) override; |
| 64 void OnKeyEvent(ui::KeyEvent* event) override; | 64 void OnKeyEvent(ui::KeyEvent* event) override; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Protects from call loops between Layout and OnWindowBoundsChanged. | 115 // Protects from call loops between Layout and OnWindowBoundsChanged. |
| 116 bool in_layout_ = false; | 116 bool in_layout_ = false; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 118 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace arc | 121 } // namespace arc |
| 122 | 122 |
| 123 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 123 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |