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

Unified Diff: ui/message_center/views/message_center_button_bar.h

Issue 1645843003: Implement Non-Closable Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/message_center/views/message_center_button_bar.h
diff --git a/ui/message_center/views/message_center_button_bar.h b/ui/message_center/views/message_center_button_bar.h
index 74c7b84640513f62c96915c9243030c5d121251a..110aa298af19a18a158ce2f033a986dd7abe9c3b 100644
--- a/ui/message_center/views/message_center_button_bar.h
+++ b/ui/message_center/views/message_center_button_bar.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "build/build_config.h"
+#include "ui/message_center/message_center_export.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/view.h"
@@ -43,10 +44,14 @@ class MessageCenterButtonBar : public views::View,
// Sometimes we shouldn't see the close-all button.
void SetCloseAllButtonEnabled(bool enabled);
+ MESSAGE_CENTER_EXPORT views::Button* GetCloseAllButtonForTest() const;
+
// Sometimes we shouldn't see the back arrow (not in settings).
void SetBackArrowVisible(bool visible);
private:
+ FRIEND_TEST_ALL_PREFIXES(MessageCenterViewTest, CloseButton);
dewittj 2016/02/03 19:31:37 Why do you need this if you have the ForTest() met
yoshiki 2016/02/07 17:49:41 Done.
+
// Updates the layout manager which can have differing configuration
// depending on the visibility of different parts of the button bar.
void ViewVisibilityChanged();

Powered by Google App Engine
This is Rietveld 408576698