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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.h

Issue 2036343003: Chrome OS highlighting: show only focus or caret, never both. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 30 matching lines...) Expand all
41 41
42 // ui::InputMethodObserver overrides: 42 // ui::InputMethodObserver overrides:
43 void OnTextInputTypeChanged(const ui::TextInputClient* client) override {} 43 void OnTextInputTypeChanged(const ui::TextInputClient* client) override {}
44 void OnFocus() override {} 44 void OnFocus() override {}
45 void OnBlur() override {} 45 void OnBlur() override {}
46 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override {} 46 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override {}
47 void OnShowImeIfNeeded() override {} 47 void OnShowImeIfNeeded() override {}
48 void OnTextInputStateChanged(const ui::TextInputClient* client) override; 48 void OnTextInputStateChanged(const ui::TextInputClient* client) override;
49 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; 49 void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
50 50
51 void UpdateFocusAndCaretHighlights();
52
51 bool focus_ = false; 53 bool focus_ = false;
52 gfx::Rect focus_rect_; 54 gfx::Rect focus_rect_;
53 55
54 bool cursor_ = false; 56 bool cursor_ = false;
55 gfx::Point cursor_point_; 57 gfx::Point cursor_point_;
56 58
57 bool caret_ = false; 59 bool caret_ = false;
60 bool caret_visible_ = false;
58 gfx::Point caret_point_; 61 gfx::Point caret_point_;
59 62
60 content::NotificationRegistrar registrar_; 63 content::NotificationRegistrar registrar_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(AccessibilityHighlightManager); 65 DISALLOW_COPY_AND_ASSIGN(AccessibilityHighlightManager);
63 }; 66 };
64 67
65 } // namespace chromeos 68 } // namespace chromeos
66 69
67 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_HIGHLIGHT_MANAGER _H_ 70 #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