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

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

Issue 8850004: Add a context field to the accessibility extension API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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
===================================================================
--- chrome/browser/accessibility/accessibility_events.cc (revision 112880)
+++ chrome/browser/accessibility/accessibility_events.cc (working copy)
@@ -43,6 +43,8 @@
void AccessibilityControlInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetString(keys::kNameKey, name_);
dict->SetString(keys::kTypeKey, type());
+ if (!context_.empty())
+ dict->SetString(keys::kContextKey, context_);
}
AccessibilityWindowInfo::AccessibilityWindowInfo(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698