| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 |
| 60 // label for that row. | 60 // label for that row. |
| 61 static const bool kTreeViewSelectionPaintsEntireRow; | 61 static const bool kTreeViewSelectionPaintsEntireRow; |
| 62 | 62 |
| 63 // Whether TreeViews use a separate icon for the currently selected node's |
| 64 // ancestors. |
| 65 static const bool kTreeViewUsesOpenIcon; |
| 66 |
| 63 // Whether ripples should be used for visual feedback on control activation. | 67 // Whether ripples should be used for visual feedback on control activation. |
| 64 static const bool kUseRipples; | 68 static const bool kUseRipples; |
| 65 | 69 |
| 66 // Whether to mirror the arrow of bubble dialogs in RTL, such that the bubble | 70 // Whether to mirror the arrow of bubble dialogs in RTL, such that the bubble |
| 67 // opens in the opposite direction. | 71 // opens in the opposite direction. |
| 68 static const bool kMirrorBubbleArrowInRTLByDefault; | 72 static const bool kMirrorBubbleArrowInRTLByDefault; |
| 69 | 73 |
| 70 // Creates an ImageSkia containing the image to use for the combobox arrow. | 74 // Creates an ImageSkia containing the image to use for the combobox arrow. |
| 71 // The |is_enabled| argument is true if the control the arrow is for is | 75 // The |is_enabled| argument is true if the control the arrow is for is |
| 72 // enabled, and false if the control is disabled. The |style| argument is the | 76 // enabled, and false if the control is disabled. The |style| argument is the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 95 // the failed edit if platform-appropriate. | 99 // the failed edit if platform-appropriate. |
| 96 static void OnTextfieldEditFailed(); | 100 static void OnTextfieldEditFailed(); |
| 97 | 101 |
| 98 private: | 102 private: |
| 99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 103 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
| 100 }; | 104 }; |
| 101 | 105 |
| 102 } // namespace views | 106 } // namespace views |
| 103 | 107 |
| 104 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 108 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
| OLD | NEW |