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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 2595163002: Add origin() method on View and use it to simplify some callers. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index cc5b5e993f5ddaba62970cfd07f93f6219a3dbc0..1e6c8ef79f9c1c7955067f90403798fd5867899e 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -2593,8 +2593,7 @@ void TabStrip::SwapLayoutIfNecessary() {
return;
if (needs_touch) {
- gfx::Size tab_size(Tab::GetMinimumActiveSize());
- tab_size.set_width(Tab::GetTouchWidth());
+ gfx::Size tab_size(Tab::GetTouchWidth(), GetLayoutConstant(TAB_HEIGHT));
Peter Kasting 2016/12/21 22:56:20 This isn't related to the rest of the CL, it snuck
touch_layout_.reset(new StackedTabStripLayout(
tab_size, Tab::kOverlap, kStackedPadding, kMaxStackedCount, &tabs_));
touch_layout_->SetWidth(GetTabAreaWidth());
« no previous file with comments | « chrome/browser/ui/views/screen_capture_notification_ui_views.cc ('k') | ui/app_list/views/app_list_main_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698