| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 #if !defined(OS_MACOSX) | 35 #if !defined(OS_MACOSX) |
| 36 | 36 |
| 37 const int PlatformStyle::kComboboxNormalArrowPadding = 7; | 37 const int PlatformStyle::kComboboxNormalArrowPadding = 7; |
| 38 const int PlatformStyle::kMinLabelButtonWidth = 70; | 38 const int PlatformStyle::kMinLabelButtonWidth = 70; |
| 39 const int PlatformStyle::kMinLabelButtonHeight = 33; | 39 const int PlatformStyle::kMinLabelButtonHeight = 33; |
| 40 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; | 40 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; |
| 41 const bool PlatformStyle::kDialogDefaultButtonCanBeCancel = true; | 41 const bool PlatformStyle::kDialogDefaultButtonCanBeCancel = true; |
| 42 const bool PlatformStyle::kTextDragVerticallyDragsToEnd = false; | |
| 43 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction = | 42 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction = |
| 44 CustomButton::NOTIFY_ON_RELEASE; | 43 CustomButton::NOTIFY_ON_RELEASE; |
| 45 const bool PlatformStyle::kTreeViewHasFocusRing = false; | 44 const bool PlatformStyle::kTreeViewHasFocusRing = false; |
| 46 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false; | 45 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false; |
| 47 const bool PlatformStyle::kUseRipples = true; | 46 const bool PlatformStyle::kUseRipples = true; |
| 48 const bool PlatformStyle::kMirrorBubbleArrowInRTLByDefault = true; | 47 const bool PlatformStyle::kMirrorBubbleArrowInRTLByDefault = true; |
| 49 | 48 |
| 50 // static | 49 // static |
| 51 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, | 50 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, |
| 52 Combobox::Style style) { | 51 Combobox::Style style) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 #if !defined(DESKTOP_LINUX) | 88 #if !defined(DESKTOP_LINUX) |
| 90 // static | 89 // static |
| 91 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( | 90 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( |
| 92 LabelButton* button) { | 91 LabelButton* button) { |
| 93 return button->CreateDefaultBorder(); | 92 return button->CreateDefaultBorder(); |
| 94 } | 93 } |
| 95 #endif | 94 #endif |
| 96 | 95 |
| 97 } // namespace views | 96 } // namespace views |
| OLD | NEW |