Chromium Code Reviews| 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 // Action to perform on a button when the Space key is pressed. | |
| 50 static const CustomButton::ButtonAction kButtonActionOnSpace; | |
| 51 | |
| 52 // Whether Return key clicks the focused control. | |
| 53 static const bool kClickControlOnReturn; | |
|
tapted
2017/01/04 04:54:31
I read "Control" and thought "Control+Return" - i.
karandeepb
2017/01/04 06:14:45
Is kReturnClicksFocusedControl better?
tapted
2017/01/05 00:34:41
Hm. I see your point. I was thinking of it in term
| |
| 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 |