| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 261 } |
| 262 NOTREACHED(); | 262 NOTREACHED(); |
| 263 return 0; | 263 return 0; |
| 264 } | 264 } |
| 265 | 265 |
| 266 int ChromeViewsDelegate::GetDefaultDistanceMetric( | 266 int ChromeViewsDelegate::GetDefaultDistanceMetric( |
| 267 views::DistanceMetric metric) const { | 267 views::DistanceMetric metric) const { |
| 268 return views::ViewsDelegate::GetDistanceMetric(metric); | 268 return views::ViewsDelegate::GetDistanceMetric(metric); |
| 269 } | 269 } |
| 270 | 270 |
| 271 gfx::Insets ChromeViewsDelegate::GetButtonMargins() const { |
| 272 return gfx::Insets( |
| 273 LayoutDelegate::Get()->GetMetric(LayoutDelegate::Metric::BUTTON_MARGIN)); |
| 274 } |
| 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 |