OLD | NEW |
(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_ |
OLD | NEW |