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

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

Issue 2715813002: Change focus indicator for TableView and TreeView. (Closed)
Patch Set: Created 3 years, 9 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
Evan Stade 2017/02/23 21:00:11 not sure why this was limited to Mac. Trent? Elly?
tapted 2017/02/23 22:55:00 Just so that other platforms didn't "regress". A T
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
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_
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