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

Side by Side Diff: ui/app_list/views/app_list_background.cc

Issue 581923002: Experimental launcher: Switcher buttons are larger and centered. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares-switcher-button-cropping
Patch Set: Rebase. Created 6 years, 2 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
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/app_list/views/app_list_background.h" 5 #include "ui/app_list/views/app_list_background.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "third_party/skia/include/core/SkPaint.h" 8 #include "third_party/skia/include/core/SkPaint.h"
9 #include "third_party/skia/include/core/SkPath.h" 9 #include "third_party/skia/include/core/SkPath.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 canvas->DrawRect(contents_rect, paint); 82 canvas->DrawRect(contents_rect, paint);
83 83
84 if (app_list::switches::IsExperimentalAppListEnabled()) { 84 if (app_list::switches::IsExperimentalAppListEnabled()) {
85 if (main_view_->visible()) { 85 if (main_view_->visible()) {
86 views::View* contents_view = main_view_->contents_view(); 86 views::View* contents_view = main_view_->contents_view();
87 const gfx::Rect contents_view_view_bounds = 87 const gfx::Rect contents_view_view_bounds =
88 contents_view->ConvertRectToWidget(contents_view->GetLocalBounds()); 88 contents_view->ConvertRectToWidget(contents_view->GetLocalBounds());
89 gfx::Rect separator_rect(contents_rect); 89 gfx::Rect separator_rect(contents_rect);
90 separator_rect.Inset( 90 separator_rect.Inset(
91 kExperimentalWindowPadding + main_view_->GetInsets().left(), 0); 91 kExperimentalWindowPadding + main_view_->GetInsets().left(), 0);
92 separator_rect.set_y(contents_view_view_bounds.bottom()); 92 separator_rect.set_y(contents_view_view_bounds.bottom() - 1);
93 separator_rect.set_height(kBottomSeparatorSize); 93 separator_rect.set_height(kBottomSeparatorSize);
94 canvas->FillRect(separator_rect, kBottomSeparatorColor); 94 canvas->FillRect(separator_rect, kBottomSeparatorColor);
95 } 95 }
96 } 96 }
97 97
98 canvas->Restore(); 98 canvas->Restore();
99 } 99 }
100 100
101 } // namespace app_list 101 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698