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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.h

Issue 2640423003: [ios] Decouples ToolsMenuViewToolsCell from ToolsMenuVC (Closed)
Patch Set: CL Feedback Created 3 years, 11 months 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 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_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_
7
8 #import <UIKit/UIKit.h>
9
10 // This is intended to be the first cell int the Tools Menu table. It contains
11 // Toolbar buttons used in compact widths. If using a standard width e.g. iPad
12 // full screen this cell will not be inserted in the Tools Menu table.
13 @interface ToolsMenuViewToolsCell : UICollectionViewCell
14 // Button for refreshing the page. Will be displayed when the context indicates
15 // that the page has loaded.
16 @property(nonatomic, strong) UIButton* reloadButton;
17 // Button that displays the share contextual menu.
18 @property(nonatomic, strong) UIButton* shareButton;
19 // Button for bookmarking a page.
20 @property(nonatomic, strong) UIButton* starButton;
21 // Button for editing a bookmarked page.
22 @property(nonatomic, strong) UIButton* starredButton;
23 // Button for stopping a page from loading. This will only be displayed
24 // if the page is currently being loaded. Otherwise the reloadButton
25 // will be shown.
26 @property(nonatomic, strong) UIButton* stopButton;
27 // Button for dismissing the Tools Menu.
28 @property(nonatomic, strong) UIButton* toolsButton;
29
30 // All buttons in the cell added in display order.
31 - (NSArray*)allButtons;
32 @end
33
34 #endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698