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

Side by Side Diff: ui/views/focus/focus_manager.h

Issue 2380303004: Move MdFocusRing to be a property of FocusManager. (Closed)
Patch Set: 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/examples/button_sticker_sheet.cc ('k') | ui/views/focus/focus_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FOCUS_FOCUS_MANAGER_H_ 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 namespace ui { 77 namespace ui {
78 class AcceleratorManager; 78 class AcceleratorManager;
79 class AcceleratorTarget; 79 class AcceleratorTarget;
80 class EventHandler; 80 class EventHandler;
81 class KeyEvent; 81 class KeyEvent;
82 } 82 }
83 83
84 namespace views { 84 namespace views {
85 85
86 namespace internal {
87 class MdFocusRing;
88 }
89
86 class FocusManagerDelegate; 90 class FocusManagerDelegate;
87 class FocusSearch; 91 class FocusSearch;
88 class View; 92 class View;
89 class Widget; 93 class Widget;
90 94
91 // The FocusTraversable interface is used by components that want to process 95 // The FocusTraversable interface is used by components that want to process
92 // focus traversal events (due to Tab/Shift-Tab key events). 96 // focus traversal events (due to Tab/Shift-Tab key events).
93 class VIEWS_EXPORT FocusTraversable { 97 class VIEWS_EXPORT FocusTraversable {
94 public: 98 public:
95 // Return a FocusSearch object that implements the algorithm to find 99 // Return a FocusSearch object that implements the algorithm to find
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 381
378 // This is true if full keyboard accessibility is needed. This causes 382 // This is true if full keyboard accessibility is needed. This causes
379 // IsAccessibilityFocusable() to be checked rather than IsFocusable(). This 383 // IsAccessibilityFocusable() to be checked rather than IsFocusable(). This
380 // can be set depending on platform constraints. FocusSearch uses this in 384 // can be set depending on platform constraints. FocusSearch uses this in
381 // addition to its own accessibility mode, which handles accessibility at the 385 // addition to its own accessibility mode, which handles accessibility at the
382 // FocusTraversable level. Currently only used on Mac, when Full Keyboard 386 // FocusTraversable level. Currently only used on Mac, when Full Keyboard
383 // access is enabled. 387 // access is enabled.
384 // Default value is false. 388 // Default value is false.
385 bool keyboard_accessible_; 389 bool keyboard_accessible_;
386 390
391 // See class-level comment for MdFocusRing.
392 std::unique_ptr<internal::MdFocusRing> focus_ring_;
393
387 DISALLOW_COPY_AND_ASSIGN(FocusManager); 394 DISALLOW_COPY_AND_ASSIGN(FocusManager);
388 }; 395 };
389 396
390 } // namespace views 397 } // namespace views
391 398
392 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ 399 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/views/examples/button_sticker_sheet.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698