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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/fancy_ui/tinted_button.h"
11 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
12
13 // TintedButton specialization that updates the tint color when the tools menu
14 // is visible or when the reading list associated with |readingListModel|
15 // contains unread items.
16 @interface ToolbarToolsMenuButton : TintedButton
17
18 // Initializes and returns a newly allocated TintedButton with the specified
19 // |frame| and the |style| of the toolbar it belongs to.
20 - (instancetype)initWithFrame:(CGRect)frame
21 style:(ToolbarControllerStyle)style
22 NS_DESIGNATED_INITIALIZER;
23
24 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
25
26 - (instancetype)initWithCoder:(NSCoder*)coder NS_UNAVAILABLE;
27
28 // Informs the button that the Tools Menu's visibility is |toolsMenuVisible|.
29 - (void)setToolsMenuIsVisible:(BOOL)toolsMenuVisible;
30
31 // Notifies the button that the Reading List's unread item count changed.
32 - (void)setReadingListContainsUnreadItems:(BOOL)readingListContainsUnreadItems;
33
34 @end
35
36 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TOOLS_MENU_BUTTON_H_
OLDNEW
« 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