| 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 "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ui/base/material_design/material_design_controller.h" | 8 #include "ui/base/material_design/material_design_controller.h" |
| 9 #include "ui/views/background.h" | 9 #include "ui/views/background.h" |
| 10 #include "ui/views/controls/button/label_button.h" | 10 #include "ui/views/controls/button/label_button.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 scoped_ptr<LabelButtonBorder> border(new views::LabelButtonBorder()); | 37 scoped_ptr<LabelButtonBorder> border(new views::LabelButtonBorder()); |
| 38 border->set_insets(views::LabelButtonAssetBorder::GetDefaultInsetsForStyle( | 38 border->set_insets(views::LabelButtonAssetBorder::GetDefaultInsetsForStyle( |
| 39 Button::STYLE_TEXTBUTTON)); | 39 Button::STYLE_TEXTBUTTON)); |
| 40 return border; | 40 return border; |
| 41 } | 41 } |
| 42 | 42 |
| 43 // static | 43 // static |
| 44 scoped_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) { | 44 scoped_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) { |
| 45 return make_scoped_ptr(new NativeScrollBar(is_horizontal)); | 45 return make_scoped_ptr(new NativeScrollBar(is_horizontal)); |
| 46 } | 46 } |
| 47 |
| 48 // static |
| 49 const bool PlatformStyle::kTextfieldDragVerticallyDragsToEnd = false; |
| 47 #endif | 50 #endif |
| 48 | 51 |
| 49 #if !defined(OS_LINUX) || defined(OS_CHROMEOS) | 52 #if !defined(OS_LINUX) || defined(OS_CHROMEOS) |
| 50 // static | 53 // static |
| 51 scoped_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( | 54 scoped_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( |
| 52 LabelButton* button) { | 55 LabelButton* button) { |
| 53 return button->CreateDefaultBorder(); | 56 return button->CreateDefaultBorder(); |
| 54 } | 57 } |
| 55 #endif | 58 #endif |
| 56 | 59 |
| 57 } // namespace views | 60 } // namespace views |
| OLD | NEW |