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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 return LayoutDelegate::Get()->GetMetric( | 256 return LayoutDelegate::Get()->GetMetric( |
257 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH); | 257 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH); |
258 case views::DistanceMetric::BUTTON_HORIZONTAL_PADDING: | 258 case views::DistanceMetric::BUTTON_HORIZONTAL_PADDING: |
259 return LayoutDelegate::Get()->GetMetric( | 259 return LayoutDelegate::Get()->GetMetric( |
260 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING); | 260 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING); |
261 } | 261 } |
262 NOTREACHED(); | 262 NOTREACHED(); |
263 return 0; | 263 return 0; |
264 } | 264 } |
265 | 265 |
| 266 const views::TypographyProvider& ChromeViewsDelegate::GetTypographyProvider() |
| 267 const { |
| 268 return LayoutDelegate::Get()->GetTypographyProvider(); |
| 269 } |
| 270 |
266 int ChromeViewsDelegate::GetDefaultDistanceMetric( | 271 int ChromeViewsDelegate::GetDefaultDistanceMetric( |
267 views::DistanceMetric metric) const { | 272 views::DistanceMetric metric) const { |
268 return views::ViewsDelegate::GetDistanceMetric(metric); | 273 return views::ViewsDelegate::GetDistanceMetric(metric); |
269 } | 274 } |
270 | 275 |
271 #if !defined(OS_CHROMEOS) | 276 #if !defined(OS_CHROMEOS) |
272 views::Widget::InitParams::WindowOpacity | 277 views::Widget::InitParams::WindowOpacity |
273 ChromeViewsDelegate::GetOpacityForInitParams( | 278 ChromeViewsDelegate::GetOpacityForInitParams( |
274 const views::Widget::InitParams& params) { | 279 const views::Widget::InitParams& params) { |
275 return views::Widget::InitParams::OPAQUE_WINDOW; | 280 return views::Widget::InitParams::OPAQUE_WINDOW; |
276 } | 281 } |
277 #endif | 282 #endif |
OLD | NEW |