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

Side by Side Diff: ios/clean/chrome/browser/ui/tools/menu_overflow_controls_stackview.mm

Issue 2693043002: [ios clean] Add overflow buttons for ToolsMenu. (Closed)
Patch Set: Use RTL for EdgeInssets Created 3 years, 10 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 #import "ios/clean/chrome/browser/ui/tools/menu_overflow_controls_stackview.h"
6
7 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_button+factory.h"
8
9 @implementation MenuOverflowControlsStackView
10 @synthesize toolsMenuButton = _toolsMenuButton;
11 @synthesize shareButton = _shareButton;
12 @synthesize reloadButton = _reloadButton;
13 @synthesize stopButton = _stopButton;
14
15 - (instancetype)init {
16 if ((self = [super init])) {
17 // PLACEHOLDER: Buttons and UI config is not final and will be improved.
18 [self setUpToolbarButtons];
19 [self addArrangedSubview:self.shareButton];
20 [self addArrangedSubview:self.stopButton];
21 [self addArrangedSubview:self.reloadButton];
22 [self addArrangedSubview:self.toolsMenuButton];
23
24 self.axis = UILayoutConstraintAxisHorizontal;
25 self.distribution = UIStackViewDistributionFillEqually;
26 }
27 return self;
28 }
29
30 #pragma mark - Components Setup
31
32 - (void)setUpToolbarButtons {
33 // Tools menu button.
34 self.toolsMenuButton = [ToolbarButton toolsMenuToolbarButton];
35
36 // Share button.
37 self.shareButton = [ToolbarButton shareToolbarButton];
38
39 // Reload button.
40 self.reloadButton = [ToolbarButton reloadToolbarButton];
41
42 // Stop button.
43 self.stopButton = [ToolbarButton stopToolbarButton];
44 }
45
46 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698