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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_overlay_view.mm

Issue 2595473002: Change the iPad tab switcher sign in button width. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_overlay_view.h" 5 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_overlay_view.h"
6 6
7 #import "base/mac/scoped_nsobject.h" 7 #import "base/mac/scoped_nsobject.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/metrics/user_metrics_action.h" 9 #include "base/metrics/user_metrics_action.h"
10 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" 10 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 @"floatingButton" : _floatingButton.get(), 147 @"floatingButton" : _floatingButton.get(),
148 @"activityIndicator" : _activityIndicator.get(), 148 @"activityIndicator" : _activityIndicator.get(),
149 }; 149 };
150 AddSameCenterXConstraint(_container, _textButton); 150 AddSameCenterXConstraint(_container, _textButton);
151 AddSameCenterXConstraint(_container, _floatingButton); 151 AddSameCenterXConstraint(_container, _floatingButton);
152 AddSameCenterXConstraint(_container, _activityIndicator); 152 AddSameCenterXConstraint(_container, _activityIndicator);
153 NSArray* constraints = @[ 153 NSArray* constraints = @[
154 @"V:|-0-[title]-12-[subtitle]-48-[button]-0-|", 154 @"V:|-0-[title]-12-[subtitle]-48-[button]-0-|",
155 @"V:[subtitle]-35-[floatingButton(==48)]-0-|", 155 @"V:[subtitle]-35-[floatingButton(==48)]-0-|",
156 @"V:[subtitle]-24-[activityIndicator]", @"H:|-[title]-|", 156 @"V:[subtitle]-24-[activityIndicator]", @"H:|-[title]-|",
157 @"H:|-[subtitle]-|", @"H:[button(==180)]", @"H:[floatingButton(==48)]" 157 @"H:|-[subtitle]-|", @"H:[button(>=180)]", @"H:[floatingButton(==48)]"
158 ]; 158 ];
159 ApplyVisualConstraints(constraints, viewsDictionary, _container); 159 ApplyVisualConstraints(constraints, viewsDictionary, _container);
160 160
161 // Sets the container's width relative to the parent. 161 // Sets the container's width relative to the parent.
162 ApplyVisualConstraintsWithMetrics( 162 ApplyVisualConstraintsWithMetrics(
163 @[ 163 @[
164 @"H:|-(>=0)-[container(==containerWidth@999)]-(>=0)-|", 164 @"H:|-(>=0)-[container(==containerWidth@999)]-(>=0)-|",
165 ], 165 ],
166 @{ @"container" : _container.get() }, 166 @{ @"container" : _container.get() },
167 @{ @"containerWidth" : @(kContainerWidth) }, self); 167 @{ @"containerWidth" : @(kContainerWidth) }, self);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 [self chromeExecuteCommand:command]; 411 [self chromeExecuteCommand:command];
412 } 412 }
413 413
414 - (void)recordMetrics { 414 - (void)recordMetrics {
415 if (!_recordedMetricString.length()) 415 if (!_recordedMetricString.length())
416 return; 416 return;
417 base::RecordAction(base::UserMetricsAction(_recordedMetricString.c_str())); 417 base::RecordAction(base::UserMetricsAction(_recordedMetricString.c_str()));
418 } 418 }
419 419
420 @end 420 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698