| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 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 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 // Whether right clicking inside an unfocused text view selects all the text. |
| 47 static const bool kSelectAllOnRightClickWhenUnfocused; |
| 48 |
| 46 // The menu button's action to show the menu. | 49 // The menu button's action to show the menu. |
| 47 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
| 48 | 51 |
| 49 // Whether the Space key clicks a button on key press or key release. | 52 // Whether the Space key clicks a button on key press or key release. |
| 50 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; | 53 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; |
| 51 | 54 |
| 52 // Whether the Return key clicks the focused control (on key press). | 55 // Whether the Return key clicks the focused control (on key press). |
| 53 // Otherwise, Return does nothing unless it is handled by an accelerator. | 56 // Otherwise, Return does nothing unless it is handled by an accelerator. |
| 54 static const bool kReturnClicksFocusedControl; | 57 static const bool kReturnClicksFocusedControl; |
| 55 | 58 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // the failed edit if platform-appropriate. | 98 // the failed edit if platform-appropriate. |
| 96 static void OnTextfieldEditFailed(); | 99 static void OnTextfieldEditFailed(); |
| 97 | 100 |
| 98 private: | 101 private: |
| 99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 102 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 } // namespace views | 105 } // namespace views |
| 103 | 106 |
| 104 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 107 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |