| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/views/style/platform_style.h" | 5 #include "ui/views/style/platform_style.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/base/material_design/material_design_controller.h" | 9 #include "ui/base/material_design/material_design_controller.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const SkColor kStyleButtonShadowColor = SK_ColorWHITE; | 30 const SkColor kStyleButtonShadowColor = SK_ColorWHITE; |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 #if !defined(OS_MACOSX) | 35 #if !defined(OS_MACOSX) |
| 36 | 36 |
| 37 const int PlatformStyle::kMinLabelButtonWidth = 70; | 37 const int PlatformStyle::kMinLabelButtonWidth = 70; |
| 38 const int PlatformStyle::kMinLabelButtonHeight = 33; | 38 const int PlatformStyle::kMinLabelButtonHeight = 33; |
| 39 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; | 39 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; |
| 40 const bool PlatformStyle::kTextfieldDragVerticallyDragsToEnd = false; |
| 40 | 41 |
| 41 // static | 42 // static |
| 42 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, | 43 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, |
| 43 Combobox::Style style) { | 44 Combobox::Style style) { |
| 44 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 45 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 45 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); | 46 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); |
| 46 } | 47 } |
| 47 | 48 |
| 48 // static | 49 // static |
| 49 std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() { | 50 std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 105 |
| 105 #if !defined(DESKTOP_LINUX) | 106 #if !defined(DESKTOP_LINUX) |
| 106 // static | 107 // static |
| 107 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( | 108 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( |
| 108 LabelButton* button) { | 109 LabelButton* button) { |
| 109 return button->CreateDefaultBorder(); | 110 return button->CreateDefaultBorder(); |
| 110 } | 111 } |
| 111 #endif | 112 #endif |
| 112 | 113 |
| 113 } // namespace views | 114 } // namespace views |
| OLD | NEW |