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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: Address comments. Created 3 years, 11 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
Index: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
index 69f935fe58a9ec3d22909b81cf3a9368c7e49161..90024dc55c9dd43f91f3c26181421e4cd6f34bc7 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
@@ -76,6 +76,12 @@ void AccessibilityHighlightManager::RegisterObservers() {
registered_observers_ = true;
}
+void AccessibilityHighlightManager::OnViewFocusedInArc(
+ const gfx::Rect& bounds_in_screen) {
+ focus_rect_ = bounds_in_screen;
+ UpdateFocusAndCaretHighlights();
+}
+
void AccessibilityHighlightManager::OnMouseEvent(ui::MouseEvent* event) {
if (event->type() == ui::ET_MOUSE_MOVED) {
cursor_point_ = event->location();

Powered by Google App Engine
This is Rietveld 408576698