| 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 // Whether the default button for a dialog can be the Cancel button. | 42 // Whether the default button for a dialog can be the Cancel button. |
| 43 static const bool kDialogDefaultButtonCanBeCancel; | 43 static const bool kDialogDefaultButtonCanBeCancel; |
| 44 | 44 |
| 45 // Whether dragging vertically above or below a textfield's bounds selects to | 45 // Whether dragging vertically above or below a textfield's bounds selects to |
| 46 // the left or right end of the text from the cursor, respectively. | 46 // the left or right end of the text from the cursor, respectively. |
| 47 static const bool kTextfieldDragVerticallyDragsToEnd; | 47 static const bool kTextfieldDragVerticallyDragsToEnd; |
| 48 | 48 |
| 49 // The menu button's action to show the menu. | 49 // The menu button's action to show the menu. |
| 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
| 51 | 51 |
| 52 // Whether selecting a row in a TreeView selects the entire row or only the |
| 53 // label for that row. |
| 54 static const bool kTreeViewSelectionPaintsEntireRow; |
| 55 |
| 52 // Creates an ImageSkia containing the image to use for the combobox arrow. | 56 // Creates an ImageSkia containing the image to use for the combobox arrow. |
| 53 // The |is_enabled| argument is true if the control the arrow is for is | 57 // The |is_enabled| argument is true if the control the arrow is for is |
| 54 // enabled, and false if the control is disabled. The |style| argument is the | 58 // enabled, and false if the control is disabled. The |style| argument is the |
| 55 // style of the combobox the arrow is being drawn for. | 59 // style of the combobox the arrow is being drawn for. |
| 56 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, | 60 static gfx::ImageSkia CreateComboboxArrow(bool is_enabled, |
| 57 Combobox::Style style); | 61 Combobox::Style style); |
| 58 | 62 |
| 59 // Creates the appropriate border for a focusable Combobox. | 63 // Creates the appropriate border for a focusable Combobox. |
| 60 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); | 64 static std::unique_ptr<FocusableBorder> CreateComboboxBorder(); |
| 61 | 65 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 85 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( | 89 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( |
| 86 LabelButton* button); | 90 LabelButton* button); |
| 87 | 91 |
| 88 private: | 92 private: |
| 89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 93 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 90 }; | 94 }; |
| 91 | 95 |
| 92 } // namespace views | 96 } // namespace views |
| 93 | 97 |
| 94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 98 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |