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

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

Issue 2726773003: Reland: Make popup notification active on being clicked (Closed)
Patch Set: Relanded Patch Created 3 years, 9 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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