| 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/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN); | 571 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN); |
| 572 // Titles are inset at the top and sides, but not at the bottom. | 572 // Titles are inset at the top and sides, but not at the bottom. |
| 573 return gfx::Insets(top, side, 0, side); | 573 return gfx::Insets(top, side, 0, side); |
| 574 } | 574 } |
| 575 | 575 |
| 576 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const { | 576 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const { |
| 577 return gfx::Insets(LayoutDelegate::Get()->GetMetric( | 577 return gfx::Insets(LayoutDelegate::Get()->GetMetric( |
| 578 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN)); | 578 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN)); |
| 579 } | 579 } |
| 580 | 580 |
| 581 int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const { |
| 582 return LayoutDelegate::Get()->GetMetric( |
| 583 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH); |
| 584 } |
| 585 |
| 586 int ChromeViewsDelegate::GetButtonHorizontalPadding() const { |
| 587 return LayoutDelegate::Get()->GetMetric( |
| 588 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING); |
| 589 } |
| 590 |
| 581 #if !defined(USE_ASH) | 591 #if !defined(USE_ASH) |
| 582 views::Widget::InitParams::WindowOpacity | 592 views::Widget::InitParams::WindowOpacity |
| 583 ChromeViewsDelegate::GetOpacityForInitParams( | 593 ChromeViewsDelegate::GetOpacityForInitParams( |
| 584 const views::Widget::InitParams& params) { | 594 const views::Widget::InitParams& params) { |
| 585 return views::Widget::InitParams::OPAQUE_WINDOW; | 595 return views::Widget::InitParams::OPAQUE_WINDOW; |
| 586 } | 596 } |
| 587 #endif | 597 #endif |
| OLD | NEW |