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

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

Issue 2729533002: Adjust behavior of control buttons of notifications. (Closed)
Patch Set: Add unimplemented method to TestContentViewDelegate 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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