Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: ui/views/style/platform_style.h

Issue 2411693002: views: add focus ring to TreeView (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/tree/tree_view.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 // Whether the default button for a dialog can be the Cancel button. 41 // Whether the default button for a dialog can be the Cancel button.
42 static const bool kDialogDefaultButtonCanBeCancel; 42 static const bool kDialogDefaultButtonCanBeCancel;
43 43
44 // Whether dragging vertically above or below a textfield's bounds selects to 44 // Whether dragging vertically above or below a textfield's bounds selects to
45 // the left or right end of the text from the cursor, respectively. 45 // the left or right end of the text from the cursor, respectively.
46 static const bool kTextfieldDragVerticallyDragsToEnd; 46 static const bool kTextfieldDragVerticallyDragsToEnd;
47 47
48 // The menu button's action to show the menu. 48 // The menu button's action to show the menu.
49 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 49 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
50 50
51 // Whether TreeViews get a focus ring on the entire TreeView when focused.
52 static const bool kTreeViewHasFocusRing;
53
51 // Whether selecting a row in a TreeView selects the entire row or only the 54 // Whether selecting a row in a TreeView selects the entire row or only the
52 // label for that row. 55 // label for that row.
53 static const bool kTreeViewSelectionPaintsEntireRow; 56 static const bool kTreeViewSelectionPaintsEntireRow;
54 57
55 // Whether ripples should be used for visual feedback on control activation. 58 // Whether ripples should be used for visual feedback on control activation.
56 static const bool kUseRipples; 59 static const bool kUseRipples;
57 60
58 // Creates an ImageSkia containing the image to use for the combobox arrow. 61 // Creates an ImageSkia containing the image to use for the combobox arrow.
59 // The |is_enabled| argument is true if the control the arrow is for is 62 // The |is_enabled| argument is true if the control the arrow is for is
60 // enabled, and false if the control is disabled. The |style| argument is the 63 // enabled, and false if the control is disabled. The |style| argument is the
(...skipping 22 matching lines...) Expand all
83 // the failed edit if platform-appropriate. 86 // the failed edit if platform-appropriate.
84 static void OnTextfieldEditFailed(); 87 static void OnTextfieldEditFailed();
85 88
86 private: 89 private:
87 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 90 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
88 }; 91 };
89 92
90 } // namespace views 93 } // namespace views
91 94
92 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 95 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tree/tree_view.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698