| 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 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 5 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| 6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // The |is_enabled| argument is true if the control the arrow is for is | 42 // The |is_enabled| argument is true if the control the arrow is for is |
| 43 // enabled, and false if the control is disabled. The |style| argument is the | 43 // enabled, and false if the control is disabled. The |style| argument is the |
| 44 // style of the combobox the arrow is being drawn for. | 44 // style of the combobox the arrow is being drawn for. |
| 45 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, | 45 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, |
| 46 Combobox::Style style); | 46 Combobox::Style style); |
| 47 | 47 |
| 48 // Creates the appropriate border for a focusable Combobox. | 48 // Creates the appropriate border for a focusable Combobox. |
| 49 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); | 49 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); |
| 50 | 50 |
| 51 // Creates the appropriate background for a Combobox. | 51 // Creates the appropriate background for a Combobox. |
| 52 static std::unique_ptr<Background> CreateComboboxBackground(); | 52 static std::unique_ptr<Background> CreateComboboxBackground( |
| 53 int shoulder_width); |
| 53 | 54 |
| 54 // Creates the default label button border for the given |style|. Used when a | 55 // Creates the default label button border for the given |style|. Used when a |
| 55 // custom default border is not provided for a particular LabelButton class. | 56 // custom default border is not provided for a particular LabelButton class. |
| 56 static std::unique_ptr<LabelButtonBorder> CreateLabelButtonBorder( | 57 static std::unique_ptr<LabelButtonBorder> CreateLabelButtonBorder( |
| 57 Button::ButtonStyle style); | 58 Button::ButtonStyle style); |
| 58 | 59 |
| 59 // Creates the default scrollbar for the given orientation. | 60 // Creates the default scrollbar for the given orientation. |
| 60 static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal); | 61 static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal); |
| 61 | 62 |
| 62 // Returns the current text color for the current button state. | 63 // Returns the current text color for the current button state. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( | 74 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( |
| 74 LabelButton* button); | 75 LabelButton* button); |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 78 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace views | 81 } // namespace views |
| 81 | 82 |
| 82 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 83 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |