| 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_
|
|
|