OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 // ToolsConsumer sets the current appearance of the ToolsMenu based on | 10 // ToolsConsumer sets the current appearance of the ToolsMenu based on |
11 // various sources provided by the mediator. | 11 // various sources provided by the mediator. |
12 @protocol ToolsConsumer | 12 @protocol ToolsConsumer |
13 // PLACEHOLDER: The current methods in this protocol are not intended to be | 13 // PLACEHOLDER: The current methods in this protocol are not intended to be |
14 // final and might change depending on how ToolsMenuVC model is set up. | 14 // final and might change depending on how ToolsMenuVC model is set up. |
15 // Sets the Tools Menu items. | 15 // Sets the Tools Menu items. |
16 - (void)setToolsMenuItems:(NSArray*)menuItems; | 16 - (void)setToolsMenuItems:(NSArray*)menuItems; |
| 17 // Sets a flag so the consumer knows if it should display the Menu overflow |
| 18 // controls. |
| 19 - (void)setDisplayOverflowControls:(BOOL)displayOverflowControls; |
17 @end | 20 @end |
18 | 21 |
19 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ | 22 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_CONSUMER_H_ |
OLD | NEW |