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

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: Add NOTREACHED() call 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..d03de943d901d01dcb69129340e64342525e0663 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -109,6 +109,35 @@ struct ViewHostMsg_AccEvent {
// The node value has changed.
VALUE_CHANGED,
};
+
+ #ifndef NDEBUG
+ static const std::string DebugString(Value value) {
brettw 2011/09/15 18:05:25 Can this big function be not inlined? Otherwise we
David Tseng 2011/09/15 21:58:45 Only true of debug builds though? Don't feel that
brettw 2011/09/16 04:52:23 Duplicating this code all over makes the .o files
+ 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";
brettw 2011/09/15 18:05:25 Indenting
David Tseng 2011/09/15 21:58:45 Done.
+ case VALUE_CHANGED: return "value changed";
+ }
+ NOTREACHED();
+ return "";
+ }
+ #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