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: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.h

Issue 2432583002: Make cursor highlighting feature work across multiple displays (Closed)
Patch Set: Address feedback on test 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 | « no previous file | chrome/browser/chromeos/accessibility/accessibility_highlight_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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER_H_
7 7
8 #include "content/public/browser/notification_details.h" 8 #include "content/public/browser/notification_details.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 18 matching lines...) Expand all
29 AccessibilityHighlightManager(); 29 AccessibilityHighlightManager();
30 ~AccessibilityHighlightManager() override; 30 ~AccessibilityHighlightManager() override;
31 31
32 void HighlightFocus(bool focus); 32 void HighlightFocus(bool focus);
33 void HighlightCursor(bool cursor); 33 void HighlightCursor(bool cursor);
34 void HighlightCaret(bool caret); 34 void HighlightCaret(bool caret);
35 35
36 void RegisterObservers(); 36 void RegisterObservers();
37 37
38 protected: 38 protected:
39 FRIEND_TEST_ALL_PREFIXES(AccessibilityFocusRingControllerTest,
40 CursorWorksOnMultipleDisplays);
41
39 // ui::EventHandler overrides: 42 // ui::EventHandler overrides:
40 void OnMouseEvent(ui::MouseEvent* event) override; 43 void OnMouseEvent(ui::MouseEvent* event) override;
41 void OnKeyEvent(ui::KeyEvent* event) override; 44 void OnKeyEvent(ui::KeyEvent* event) override;
42 45
43 // content::NotificationObserver overrides: 46 // content::NotificationObserver overrides:
44 void Observe(int type, 47 void Observe(int type,
45 const content::NotificationSource& source, 48 const content::NotificationSource& source,
46 const content::NotificationDetails& details) override; 49 const content::NotificationDetails& details) override;
47 50
48 // ui::InputMethodObserver overrides: 51 // ui::InputMethodObserver overrides:
(...skipping 26 matching lines...) Expand all
75 78
76 bool registered_observers_ = false; 79 bool registered_observers_ = false;
77 content::NotificationRegistrar registrar_; 80 content::NotificationRegistrar registrar_;
78 81
79 DISALLOW_COPY_AND_ASSIGN(AccessibilityHighlightManager); 82 DISALLOW_COPY_AND_ASSIGN(AccessibilityHighlightManager);
80 }; 83 };
81 84
82 } // namespace chromeos 85 } // namespace chromeos
83 86
84 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER _H_ 87 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698