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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Resync Created 3 years, 9 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
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 "chrome/browser/ui/views/chrome_views_delegate.h" 5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const { 243 int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const {
244 return LayoutDelegate::Get()->GetMetric( 244 return LayoutDelegate::Get()->GetMetric(
245 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH); 245 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH);
246 } 246 }
247 247
248 int ChromeViewsDelegate::GetButtonHorizontalPadding() const { 248 int ChromeViewsDelegate::GetButtonHorizontalPadding() const {
249 return LayoutDelegate::Get()->GetMetric( 249 return LayoutDelegate::Get()->GetMetric(
250 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING); 250 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING);
251 } 251 }
252 252
253 gfx::Insets ChromeViewsDelegate::GetButtonMargins() const {
254 return gfx::Insets(
255 LayoutDelegate::Get()->GetMetric(LayoutDelegate::Metric::BUTTON_MARGIN));
256 }
257
253 #if !defined(OS_CHROMEOS) 258 #if !defined(OS_CHROMEOS)
254 views::Widget::InitParams::WindowOpacity 259 views::Widget::InitParams::WindowOpacity
255 ChromeViewsDelegate::GetOpacityForInitParams( 260 ChromeViewsDelegate::GetOpacityForInitParams(
256 const views::Widget::InitParams& params) { 261 const views::Widget::InitParams& params) {
257 return views::Widget::InitParams::OPAQUE_WINDOW; 262 return views::Widget::InitParams::OPAQUE_WINDOW;
258 } 263 }
259 #endif 264 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698