| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void OnFocus() override; | 56 void OnFocus() override; |
| 57 void OnBlur() override; | 57 void OnBlur() override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 ArcCustomNotificationView* const owner_; | 60 ArcCustomNotificationView* const owner_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(ControlButton); | 62 DISALLOW_COPY_AND_ASSIGN(ControlButton); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 void CreateCloseButton(); | 65 void CreateCloseButton(); |
| 66 void CreateSettingsButton(); |
| 66 void CreateFloatingControlButtons(); | 67 void CreateFloatingControlButtons(); |
| 67 void SetSurface(exo::NotificationSurface* surface); | 68 void SetSurface(exo::NotificationSurface* surface); |
| 68 void UpdatePreferredSize(); | 69 void UpdatePreferredSize(); |
| 69 void UpdateControlButtonsVisibility(); | 70 void UpdateControlButtonsVisibility(); |
| 70 void UpdatePinnedState(); | 71 void UpdatePinnedState(); |
| 71 void UpdateSnapshot(); | 72 void UpdateSnapshot(); |
| 72 void AttachSurface(); | 73 void AttachSurface(); |
| 73 void ActivateToast(); | 74 void ActivateToast(); |
| 74 | 75 |
| 75 // views::NativeViewHost | 76 // views::NativeViewHost |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 // Protects from call loops between Layout and OnWindowBoundsChanged. | 132 // Protects from call loops between Layout and OnWindowBoundsChanged. |
| 132 bool in_layout_ = false; | 133 bool in_layout_ = false; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 135 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 } // namespace arc | 138 } // namespace arc |
| 138 | 139 |
| 139 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 140 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |