| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // The menu button's action to show the menu. | 49 // The menu button's action to show the menu. |
| 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction; | 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction; |
| 51 | 51 |
| 52 // 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. |
| 53 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; | 53 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; |
| 54 | 54 |
| 55 // Whether the Return key clicks the focused control (on key press). | 55 // Whether the Return key clicks the focused control (on key press). |
| 56 // Otherwise, Return does nothing unless it is handled by an accelerator. | 56 // Otherwise, Return does nothing unless it is handled by an accelerator. |
| 57 static const bool kReturnClicksFocusedControl; | 57 static const bool kReturnClicksFocusedControl; |
| 58 | 58 |
| 59 // Whether TreeViews get a focus ring on the entire TreeView when focused. | |
| 60 static const bool kTreeViewHasFocusRing; | |
| 61 | |
| 62 // 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 |
| 63 // label for that row. | 60 // label for that row. |
| 64 static const bool kTreeViewSelectionPaintsEntireRow; | 61 static const bool kTreeViewSelectionPaintsEntireRow; |
| 65 | 62 |
| 66 // Whether ripples should be used for visual feedback on control activation. | 63 // Whether ripples should be used for visual feedback on control activation. |
| 67 static const bool kUseRipples; | 64 static const bool kUseRipples; |
| 68 | 65 |
| 69 // Whether to mirror the arrow of bubble dialogs in RTL, such that the bubble | 66 // Whether to mirror the arrow of bubble dialogs in RTL, such that the bubble |
| 70 // opens in the opposite direction. | 67 // opens in the opposite direction. |
| 71 static const bool kMirrorBubbleArrowInRTLByDefault; | 68 static const bool kMirrorBubbleArrowInRTLByDefault; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 98 // the failed edit if platform-appropriate. | 95 // the failed edit if platform-appropriate. |
| 99 static void OnTextfieldEditFailed(); | 96 static void OnTextfieldEditFailed(); |
| 100 | 97 |
| 101 private: | 98 private: |
| 102 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 103 }; | 100 }; |
| 104 | 101 |
| 105 } // namespace views | 102 } // namespace views |
| 106 | 103 |
| 107 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 104 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |