Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_MENU_OVERFLOW_CONTROLS_STACKVIEW_H_ | |
| 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_MENU_OVERFLOW_CONTROLS_STACKVIEW_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 @class ToolbarButton; | |
| 11 | |
| 12 // StackView subclass that contains the Overflow Toolbar Buttons that will be | |
| 13 // inserted in the first row of ToolMenu in compact widths. | |
| 14 @interface MenuOverflowControlsStackView : UIStackView | |
|
edchin
2017/02/15 04:14:50
I would rather avoid inheritance in this case.
Th
marq (ping after 24h)
2017/02/15 15:06:16
+1, this is the pattern we've been using so far. E
sczs
2017/02/16 00:31:39
The Buttons visibility needs to be set by the Tool
edchin
2017/02/16 01:21:00
Agreed. After some more discussion, there's additi
| |
| 15 // ToolsMenu ToolbarButton. | |
| 16 @property(nonatomic, strong) ToolbarButton* toolsMenuButton; | |
| 17 // Share ToolbarButton. | |
| 18 @property(nonatomic, strong) ToolbarButton* shareButton; | |
| 19 // Reload ToolbarButton. | |
| 20 @property(nonatomic, strong) ToolbarButton* reloadButton; | |
| 21 // Stop ToolbarButton. | |
| 22 @property(nonatomic, strong) ToolbarButton* stopButton; | |
| 23 @end | |
| 24 | |
| 25 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_MENU_OVERFLOW_CONTROLS_STACKVIEW_H_ | |
| OLD | NEW |