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

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

Issue 2747383002: Hide the settings button on a notification in MNC. (Closed)
Patch Set: rebase 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_custom_notification_item.h ('k') | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698