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 // Click action to perform on a button when the Space key is pressed. | |
tapted
2017/01/05 00:34:41
This comment doesn't read quite right, since "pres
karandeepb
2017/01/05 10:50:09
Done.
| |
50 static const CustomButton::ClickAction kClickActionOnSpace; | |
51 | |
52 // Whether Return key clicks the focused control. | |
tapted
2017/01/05 00:34:41
It might be good to be explicit here too. E.g.
"
karandeepb
2017/01/05 10:50:09
Done.
| |
53 static const bool kReturnClicksFocusedControl; | |
54 | |
49 // Whether TreeViews get a focus ring on the entire TreeView when focused. | 55 // Whether TreeViews get a focus ring on the entire TreeView when focused. |
50 static const bool kTreeViewHasFocusRing; | 56 static const bool kTreeViewHasFocusRing; |
51 | 57 |
52 // Whether selecting a row in a TreeView selects the entire row or only the | 58 // Whether selecting a row in a TreeView selects the entire row or only the |
53 // label for that row. | 59 // label for that row. |
54 static const bool kTreeViewSelectionPaintsEntireRow; | 60 static const bool kTreeViewSelectionPaintsEntireRow; |
55 | 61 |
56 // Whether ripples should be used for visual feedback on control activation. | 62 // Whether ripples should be used for visual feedback on control activation. |
57 static const bool kUseRipples; | 63 static const bool kUseRipples; |
58 | 64 |
(...skipping 29 matching lines...) Expand all Loading... | |
88 // the failed edit if platform-appropriate. | 94 // the failed edit if platform-appropriate. |
89 static void OnTextfieldEditFailed(); | 95 static void OnTextfieldEditFailed(); |
90 | 96 |
91 private: | 97 private: |
92 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 98 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
93 }; | 99 }; |
94 | 100 |
95 } // namespace views | 101 } // namespace views |
96 | 102 |
97 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 103 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
OLD | NEW |