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