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

Unified Diff: content/common/view_messages.h

Issue 7867018: Add routing id and notification type to accessibility logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | content/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index d127d71737c225480a0673ff1c19426bc3d7aa27..bf0b170ae1f7aafc9a1f1ef5236fa341f3dfa58a 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -109,6 +109,34 @@ struct ViewHostMsg_AccEvent {
// The node value has changed.
VALUE_CHANGED,
};
+
+ #ifndef NDEBUG
+ static const std::string DebugString(Value value) {
+ switch (value) {
+ case ACTIVE_DESCENDANT_CHANGED: return "active descendant changed";
+ case ALERT: return "alert";
+ case CHECK_STATE_CHANGED: return "checked state changed";
+ case CHILDREN_CHANGED: return "children changed";
+ case FOCUS_CHANGED: return "focus changed";
+ case LAYOUT_COMPLETE: return "layout complete";
+ case LIVE_REGION_CHANGED: return "live region changed";
+ case LOAD_COMPLETE: return "load complete";
+ case MENU_LIST_VALUE_CHANGED: return "menu list changed";
+ case OBJECT_SHOW: return "object show";
+ case OBJECT_HIDE: return "object hide";
+ case ROW_COUNT_CHANGED: return "row count changed";
+ case ROW_COLLAPSED: return "row collapsed";
+ case ROW_EXPANDED: return "row expanded";
+ case SCROLLED_TO_ANCHOR: return "scrolled to anchor";
+ case SELECTED_CHILDREN_CHANGED: return "selected children changed";
+ case SELECTED_TEXT_CHANGED: return "selected text changed";
+ case TEXT_INSERTED: return "text inserted";
+ case TEXT_REMOVED: return "text removed";
tony 2011/09/13 23:22:21 Nit: indent seems off here
+ case VALUE_CHANGED: return "value changed";
+ }
+ return "";
tony 2011/09/13 23:22:21 Nit: NOT_REACHED()
+ }
+ #endif // NDEBUG
};
// Values that may be OR'd together to form the 'flags' parameter of the
« no previous file with comments | « no previous file | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698