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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.h
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.h b/ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a59c1c6dbfc14505628547397072eb31c2e6c7f
--- /dev/null
+++ b/ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_
+#define IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_
+
+#import <UIKit/UIKit.h>
+
+// This is intended to be the first cell int the Tools Menu table. It contains
+// Toolbar buttons used in compact widths. If using a standard width e.g. iPad
+// full screen this cell will not be inserted in the Tools Menu table.
+@interface ToolsMenuViewToolsCell : UICollectionViewCell
+// Button for refreshing the page. Will be displayed when the context indicates
+// that the page has loaded.
+@property(nonatomic, strong) UIButton* reloadButton;
+// Button that displays the share contextual menu.
+@property(nonatomic, strong) UIButton* shareButton;
+// Button for bookmarking a page.
+@property(nonatomic, strong) UIButton* starButton;
+// Button for editing a bookmarked page.
+@property(nonatomic, strong) UIButton* starredButton;
+// Button for stopping a page from loading. This will only be displayed
+// if the page is currently being loaded. Otherwise the reloadButton
+// will be shown.
+@property(nonatomic, strong) UIButton* stopButton;
+// Button for dismissing the Tools Menu.
+@property(nonatomic, strong) UIButton* toolsButton;
+
+// All buttons in the cell added in display order.
+- (NSArray*)allButtons;
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_TOOLS_MENU_TOOLS_MENU_VIEW_TOOLS_CELL_H_

Powered by Google App Engine
This is Rietveld 408576698