| 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 26 matching lines...) Expand all Loading... |
| 37 // Whether dialog-default buttons are given a bold font style. | 37 // Whether dialog-default buttons are given a bold font style. |
| 38 static const bool kDefaultLabelButtonHasBoldFont; | 38 static const bool kDefaultLabelButtonHasBoldFont; |
| 39 | 39 |
| 40 // Whether the default button for a dialog can be the Cancel button. | 40 // Whether the default button for a dialog can be the Cancel button. |
| 41 static const bool kDialogDefaultButtonCanBeCancel; | 41 static const bool kDialogDefaultButtonCanBeCancel; |
| 42 | 42 |
| 43 // Whether dragging vertically above or below a text view's bounds selects to | 43 // Whether dragging vertically above or below a text view's bounds selects to |
| 44 // the left or right end of the text from the cursor, respectively. | 44 // the left or right end of the text from the cursor, respectively. |
| 45 static const bool kTextDragVerticallyDragsToEnd; | 45 static const bool kTextDragVerticallyDragsToEnd; |
| 46 | 46 |
| 47 // Whether right clicking on text, selects the word under cursor. |
| 48 static const bool kSelectWordOnRightClick; |
| 49 |
| 47 // The menu button's action to show the menu. | 50 // The menu button's action to show the menu. |
| 48 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 51 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
| 49 | 52 |
| 50 // Whether TreeViews get a focus ring on the entire TreeView when focused. | 53 // Whether TreeViews get a focus ring on the entire TreeView when focused. |
| 51 static const bool kTreeViewHasFocusRing; | 54 static const bool kTreeViewHasFocusRing; |
| 52 | 55 |
| 53 // Whether selecting a row in a TreeView selects the entire row or only the | 56 // Whether selecting a row in a TreeView selects the entire row or only the |
| 54 // label for that row. | 57 // label for that row. |
| 55 static const bool kTreeViewSelectionPaintsEntireRow; | 58 static const bool kTreeViewSelectionPaintsEntireRow; |
| 56 | 59 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // the failed edit if platform-appropriate. | 92 // the failed edit if platform-appropriate. |
| 90 static void OnTextfieldEditFailed(); | 93 static void OnTextfieldEditFailed(); |
| 91 | 94 |
| 92 private: | 95 private: |
| 93 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 96 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace views | 99 } // namespace views |
| 97 | 100 |
| 98 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 101 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |