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

Unified Diff: ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h

Issue 2588733002: Upstream Chrome on iOS source code [9/11]. (Closed)
Patch Set: Created 4 years 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: ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h
diff --git a/ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h b/ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h
new file mode 100644
index 0000000000000000000000000000000000000000..252e8d766ef4d2d9ccb3f3dcfe2b55522acc69b3
--- /dev/null
+++ b/ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
+#define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/chrome/browser/ui/fancy_ui/tinted_button.h"
+#import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
+
+// TintedButton specialization that updates the tint color when the tools menu
+// is visible or when the reading list associated with |readingListModel|
+// contains unread items.
+@interface ToolbarToolsMenuButton : TintedButton
+
+// Initializes and returns a newly allocated TintedButton with the specified
+// |frame| and the |style| of the toolbar it belongs to.
+- (instancetype)initWithFrame:(CGRect)frame
+ style:(ToolbarControllerStyle)style
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+
+- (instancetype)initWithCoder:(NSCoder*)coder NS_UNAVAILABLE;
+
+// Informs the button that the Tools Menu's visibility is |toolsMenuVisible|.
+- (void)setToolsMenuIsVisible:(BOOL)toolsMenuVisible;
+
+// Notifies the button that the Reading List's unread item count changed.
+- (void)setReadingListContainsUnreadItems:(BOOL)readingListContainsUnreadItems;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_resource_macros.h ('k') | ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698