| 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 29 matching lines...) Expand all Loading... |
| 40 class EventForwarder; | 40 class EventForwarder; |
| 41 class SlideHelper; | 41 class SlideHelper; |
| 42 | 42 |
| 43 void CreateFloatingCloseButton(); | 43 void CreateFloatingCloseButton(); |
| 44 void SetSurface(exo::NotificationSurface* surface); | 44 void SetSurface(exo::NotificationSurface* surface); |
| 45 void UpdatePreferredSize(); | 45 void UpdatePreferredSize(); |
| 46 void UpdateCloseButtonVisiblity(); | 46 void UpdateCloseButtonVisiblity(); |
| 47 void UpdatePinnedState(); | 47 void UpdatePinnedState(); |
| 48 void UpdateSnapshot(); | 48 void UpdateSnapshot(); |
| 49 void AttachSurface(); | 49 void AttachSurface(); |
| 50 void UpdateAccessibleName(); |
| 50 | 51 |
| 51 // views::NativeViewHost | 52 // views::NativeViewHost |
| 52 void ViewHierarchyChanged( | 53 void ViewHierarchyChanged( |
| 53 const ViewHierarchyChangedDetails& details) override; | 54 const ViewHierarchyChangedDetails& details) override; |
| 54 void Layout() override; | 55 void Layout() override; |
| 55 void OnPaint(gfx::Canvas* canvas) override; | 56 void OnPaint(gfx::Canvas* canvas) override; |
| 56 void OnKeyEvent(ui::KeyEvent* event) override; | 57 void OnKeyEvent(ui::KeyEvent* event) override; |
| 57 void OnGestureEvent(ui::GestureEvent* event) override; | 58 void OnGestureEvent(ui::GestureEvent* event) override; |
| 58 void OnMouseEntered(const ui::MouseEvent& event) override; | 59 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 59 void OnMouseExited(const ui::MouseEvent& event) override; | 60 void OnMouseExited(const ui::MouseEvent& event) override; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 std::unique_ptr<views::Widget> floating_close_button_widget_; | 99 std::unique_ptr<views::Widget> floating_close_button_widget_; |
| 99 | 100 |
| 100 views::ImageButton* floating_close_button_ = nullptr; | 101 views::ImageButton* floating_close_button_ = nullptr; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); | 103 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace arc | 106 } // namespace arc |
| 106 | 107 |
| 107 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ | 108 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ |
| OLD | NEW |