Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/arc/notification/arc_custom_notification_view.h

Issue 2873553002: [Notifications] Fix swipe to close for ARC notifications. (Closed)
Patch Set: Address comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void AttachSurface(); 83 void AttachSurface();
84 void ActivateToast(); 84 void ActivateToast();
85 void StartControlButtonsColorAnimation(); 85 void StartControlButtonsColorAnimation();
86 bool ShouldUpdateControlButtonsColor() const; 86 bool ShouldUpdateControlButtonsColor() const;
87 87
88 // views::NativeViewHost 88 // views::NativeViewHost
89 void ViewHierarchyChanged( 89 void ViewHierarchyChanged(
90 const ViewHierarchyChangedDetails& details) override; 90 const ViewHierarchyChangedDetails& details) override;
91 void Layout() override; 91 void Layout() override;
92 void OnPaint(gfx::Canvas* canvas) override; 92 void OnPaint(gfx::Canvas* canvas) override;
93 void OnKeyEvent(ui::KeyEvent* event) override;
94 void OnGestureEvent(ui::GestureEvent* event) override;
95 void OnMouseEntered(const ui::MouseEvent& event) override; 93 void OnMouseEntered(const ui::MouseEvent& event) override;
96 void OnMouseExited(const ui::MouseEvent& event) override; 94 void OnMouseExited(const ui::MouseEvent& event) override;
97 void OnFocus() override; 95 void OnFocus() override;
98 void OnBlur() override; 96 void OnBlur() override;
99 views::FocusTraversable* GetFocusTraversable() override; 97 views::FocusTraversable* GetFocusTraversable() override;
100 bool HandleAccessibleAction(const ui::AXActionData& action) override; 98 bool HandleAccessibleAction(const ui::AXActionData& action) override;
101 99
102 // views::ButtonListener 100 // views::ButtonListener
103 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 101 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
104 102
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool in_layout_ = false; 150 bool in_layout_ = false;
153 151
154 std::unique_ptr<gfx::LinearAnimation> control_button_color_animation_; 152 std::unique_ptr<gfx::LinearAnimation> control_button_color_animation_;
155 153
156 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView); 154 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationView);
157 }; 155 };
158 156
159 } // namespace arc 157 } // namespace arc
160 158
161 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_ 159 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698