| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |