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