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

Side by Side Diff: ui/message_center/views/message_center_button_bar.h

Issue 1961803002: Remove NoNotificationMessageView from empty message center (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests of "mode". Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 MessageCenterButtonBar(MessageCenterView* message_center_view, 33 MessageCenterButtonBar(MessageCenterView* message_center_view,
34 MessageCenter* message_center, 34 MessageCenter* message_center,
35 NotifierSettingsProvider* notifier_settings_provider, 35 NotifierSettingsProvider* notifier_settings_provider,
36 bool settings_initially_visible, 36 bool settings_initially_visible,
37 const base::string16& title); 37 const base::string16& title);
38 ~MessageCenterButtonBar() override; 38 ~MessageCenterButtonBar() override;
39 39
40 // Enables or disables all of the buttons in the center. This is used to 40 // Enables or disables all of the buttons in the center. This is used to
41 // prevent user clicks during the close-all animation. 41 // prevent user clicks during the close-all animation.
42 virtual void SetAllButtonsEnabled(bool enabled); 42 void SetSettingsAndQuietModeButtonsEnabled(bool enabled);
43 43
44 // Sometimes we shouldn't see the close-all button. 44 // Sometimes we shouldn't see the close-all button.
45 void SetCloseAllButtonEnabled(bool enabled); 45 void SetCloseAllButtonEnabled(bool enabled);
46 46
47 MESSAGE_CENTER_EXPORT views::Button* GetCloseAllButtonForTest() const; 47 MESSAGE_CENTER_EXPORT views::Button* GetCloseAllButtonForTest() const;
48 48
49 // Sometimes we shouldn't see the back arrow (not in settings). 49 // Sometimes we shouldn't see the back arrow (not in settings).
50 void SetBackArrowVisible(bool visible); 50 void SetBackArrowVisible(bool visible);
51 51
52 private: 52 private:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 NotificationCenterButton* close_all_button_; 84 NotificationCenterButton* close_all_button_;
85 NotificationCenterButton* settings_button_; 85 NotificationCenterButton* settings_button_;
86 NotificationCenterButton* quiet_mode_button_; 86 NotificationCenterButton* quiet_mode_button_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); 88 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar);
89 }; 89 };
90 90
91 } // namespace message_center 91 } // namespace message_center
92 92
93 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ 93 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/message_center_button_bar.cc » ('j') | ui/message_center/views/message_center_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698