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 28 matching lines...) Expand all Loading... |
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 right clicking on text, selects the word under cursor. | 43 // Whether right clicking on text, selects the word under cursor. |
44 static const bool kSelectWordOnRightClick; | 44 static const bool kSelectWordOnRightClick; |
45 | 45 |
46 // The menu button's action to show the menu. | 46 // The menu button's action to show the menu. |
47 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 47 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
48 | 48 |
| 49 // Whether the Space key clicks a button on key press or key release. |
| 50 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; |
| 51 |
| 52 // Whether the Return key clicks the focused control (on key press). |
| 53 // Otherwise, Return does nothing unless it is handled by an accelerator. |
| 54 static const bool kReturnClicksFocusedControl; |
| 55 |
49 // Whether TreeViews get a focus ring on the entire TreeView when focused. | 56 // Whether TreeViews get a focus ring on the entire TreeView when focused. |
50 static const bool kTreeViewHasFocusRing; | 57 static const bool kTreeViewHasFocusRing; |
51 | 58 |
52 // Whether selecting a row in a TreeView selects the entire row or only the | 59 // Whether selecting a row in a TreeView selects the entire row or only the |
53 // label for that row. | 60 // label for that row. |
54 static const bool kTreeViewSelectionPaintsEntireRow; | 61 static const bool kTreeViewSelectionPaintsEntireRow; |
55 | 62 |
56 // Whether ripples should be used for visual feedback on control activation. | 63 // Whether ripples should be used for visual feedback on control activation. |
57 static const bool kUseRipples; | 64 static const bool kUseRipples; |
58 | 65 |
(...skipping 29 matching lines...) Expand all Loading... |
88 // the failed edit if platform-appropriate. | 95 // the failed edit if platform-appropriate. |
89 static void OnTextfieldEditFailed(); | 96 static void OnTextfieldEditFailed(); |
90 | 97 |
91 private: | 98 private: |
92 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
93 }; | 100 }; |
94 | 101 |
95 } // namespace views | 102 } // namespace views |
96 | 103 |
97 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 104 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
OLD | NEW |