| 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 23 matching lines...) Expand all Loading... |
| 34 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON). | 34 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON). |
| 35 static const int kMinLabelButtonWidth; | 35 static const int kMinLabelButtonWidth; |
| 36 static const int kMinLabelButtonHeight; | 36 static const int kMinLabelButtonHeight; |
| 37 | 37 |
| 38 // Whether dialog-default buttons are given a bold font style. | 38 // Whether dialog-default buttons are given a bold font style. |
| 39 static const bool kDefaultLabelButtonHasBoldFont; | 39 static const bool kDefaultLabelButtonHasBoldFont; |
| 40 | 40 |
| 41 // Whether the default button for a dialog can be the Cancel button. | 41 // Whether the default button for a dialog can be the Cancel button. |
| 42 static const bool kDialogDefaultButtonCanBeCancel; | 42 static const bool kDialogDefaultButtonCanBeCancel; |
| 43 | 43 |
| 44 // Whether dragging vertically above or below a textfield's bounds selects to | 44 // Whether dragging vertically above or below a text view's bounds selects to |
| 45 // the left or right end of the text from the cursor, respectively. | 45 // the left or right end of the text from the cursor, respectively. |
| 46 static const bool kTextfieldDragVerticallyDragsToEnd; | 46 static const bool kTextDragVerticallyDragsToEnd; |
| 47 | 47 |
| 48 // The menu button's action to show the menu. | 48 // The menu button's action to show the menu. |
| 49 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 49 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
| 50 | 50 |
| 51 // Whether selecting a row in a TreeView selects the entire row or only the | 51 // Whether selecting a row in a TreeView selects the entire row or only the |
| 52 // label for that row. | 52 // label for that row. |
| 53 static const bool kTreeViewSelectionPaintsEntireRow; | 53 static const bool kTreeViewSelectionPaintsEntireRow; |
| 54 | 54 |
| 55 // Whether ripples should be used for visual feedback on control activation. | 55 // Whether ripples should be used for visual feedback on control activation. |
| 56 static const bool kUseRipples; | 56 static const bool kUseRipples; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 83 // the failed edit if platform-appropriate. | 83 // the failed edit if platform-appropriate. |
| 84 static void OnTextfieldEditFailed(); | 84 static void OnTextfieldEditFailed(); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 87 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace views | 90 } // namespace views |
| 91 | 91 |
| 92 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 92 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |