| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::kSelectWordOnRightClick = false; | 44 const bool PlatformStyle::kSelectWordOnRightClick = false; |
| 45 const bool PlatformStyle::kSelectAllOnRightClickWhenUnfocused = false; | 45 const bool PlatformStyle::kSelectAllOnRightClickWhenUnfocused = false; |
| 46 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction = | 46 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction = |
| 47 CustomButton::NOTIFY_ON_RELEASE; | 47 CustomButton::NOTIFY_ON_RELEASE; |
| 48 const CustomButton::KeyClickAction PlatformStyle::kKeyClickActionOnSpace = | 48 const CustomButton::KeyClickAction PlatformStyle::kKeyClickActionOnSpace = |
| 49 CustomButton::CLICK_ON_KEY_RELEASE; | 49 CustomButton::CLICK_ON_KEY_RELEASE; |
| 50 const bool PlatformStyle::kReturnClicksFocusedControl = true; | 50 const bool PlatformStyle::kReturnClicksFocusedControl = true; |
| 51 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false; | 51 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false; |
| 52 const bool PlatformStyle::kTreeViewUsesOpenIcon = true; |
| 52 const bool PlatformStyle::kUseRipples = true; | 53 const bool PlatformStyle::kUseRipples = true; |
| 53 const bool PlatformStyle::kMirrorBubbleArrowInRTLByDefault = true; | 54 const bool PlatformStyle::kMirrorBubbleArrowInRTLByDefault = true; |
| 54 | 55 |
| 55 // static | 56 // static |
| 56 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, | 57 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, |
| 57 Combobox::Style style) { | 58 Combobox::Style style) { |
| 58 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 59 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 59 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); | 60 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); |
| 60 } | 61 } |
| 61 | 62 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 #if !defined(DESKTOP_LINUX) | 99 #if !defined(DESKTOP_LINUX) |
| 99 // static | 100 // static |
| 100 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( | 101 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( |
| 101 LabelButton* button) { | 102 LabelButton* button) { |
| 102 return button->CreateDefaultBorder(); | 103 return button->CreateDefaultBorder(); |
| 103 } | 104 } |
| 104 #endif | 105 #endif |
| 105 | 106 |
| 106 } // namespace views | 107 } // namespace views |
| OLD | NEW |