OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |