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

Unified Diff: chrome/browser/accessibility/accessibility_events.cc

Issue 600063002: Draw a focus ring around native views when ChromeVox is running. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add check for Chrome OS Created 6 years, 3 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/accessibility/accessibility_events.cc
diff --git a/chrome/browser/accessibility/accessibility_events.cc b/chrome/browser/accessibility/accessibility_events.cc
index 9015e5b98eca2c5a708d73b4398b0e912467c6f7..394fa60b1167a1fe348a96c13ddecb929d570dcc 100644
--- a/chrome/browser/accessibility/accessibility_events.cc
+++ b/chrome/browser/accessibility/accessibility_events.cc
@@ -63,6 +63,14 @@ void AccessibilityControlInfo::SerializeToDict(
dict->SetString(keys::kTypeKey, type());
if (!context_.empty())
dict->SetString(keys::kContextKey, context_);
+ if (!bounds_.IsEmpty()) {
+ base::DictionaryValue* bounds_value = new base::DictionaryValue();
+ bounds_value->SetInteger(keys::kLeft, bounds_.x());
+ bounds_value->SetInteger(keys::kTop, bounds_.y());
+ bounds_value->SetInteger(keys::kWidth, bounds_.width());
+ bounds_value->SetInteger(keys::kHeight, bounds_.height());
+ dict->Set(keys::kBoundsKey, bounds_value);
+ }
}
AccessibilityWindowInfo::AccessibilityWindowInfo(Profile* profile,
« no previous file with comments | « chrome/browser/accessibility/accessibility_events.h ('k') | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698