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, |