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

Unified Diff: ui/views/view.h

Issue 2380303004: Move MdFocusRing to be a property of FocusManager. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 55cc02bb54da4eaa205df9f8adc17d5f84245279..ac638b6bf9977739593422386470caf8e2065345 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1150,6 +1150,12 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
void Focus();
void Blur();
+ // See documentation on variable.
+ bool should_use_md_focus_ring() { return should_use_md_focus_ring_; }
+ void set_should_use_md_focus_ring(bool use) {
+ should_use_md_focus_ring_ = use;
+ }
+
// System events -------------------------------------------------------------
// Called when the UI theme (not the NativeTheme) has changed, overriding
@@ -1546,6 +1552,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// The focus behavior of the view in regular and accessibility mode.
FocusBehavior focus_behavior_;
+ // True if this view wants to display focus via a Harmony/MD style focus ring.
+ bool should_use_md_focus_ring_;
+
// Context menus -------------------------------------------------------------
// The menu controller.
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698