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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Text was inserted in a node with text content. 103 // Text was inserted in a node with text content.
104 TEXT_INSERTED, 104 TEXT_INSERTED,
105 105
106 // Text was removed in a node with text content. 106 // Text was removed in a node with text content.
107 TEXT_REMOVED, 107 TEXT_REMOVED,
108 108
109 // The node value has changed. 109 // The node value has changed.
110 VALUE_CHANGED, 110 VALUE_CHANGED,
111 }; 111 };
112
113 #ifndef NDEBUG
114 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
115 switch (value) {
116 case ACTIVE_DESCENDANT_CHANGED: return "active descendant changed";
117 case ALERT: return "alert";
118 case CHECK_STATE_CHANGED: return "checked state changed";
119 case CHILDREN_CHANGED: return "children changed";
120 case FOCUS_CHANGED: return "focus changed";
121 case LAYOUT_COMPLETE: return "layout complete";
122 case LIVE_REGION_CHANGED: return "live region changed";
123 case LOAD_COMPLETE: return "load complete";
124 case MENU_LIST_VALUE_CHANGED: return "menu list changed";
125 case OBJECT_SHOW: return "object show";
126 case OBJECT_HIDE: return "object hide";
127 case ROW_COUNT_CHANGED: return "row count changed";
128 case ROW_COLLAPSED: return "row collapsed";
129 case ROW_EXPANDED: return "row expanded";
130 case SCROLLED_TO_ANCHOR: return "scrolled to anchor";
131 case SELECTED_CHILDREN_CHANGED: return "selected children changed";
132 case SELECTED_TEXT_CHANGED: return "selected text changed";
133 case TEXT_INSERTED: return "text inserted";
134 case TEXT_REMOVED: return "text removed";
brettw 2011/09/15 18:05:25 Indenting
David Tseng 2011/09/15 21:58:45 Done.
135 case VALUE_CHANGED: return "value changed";
136 }
137 NOTREACHED();
138 return "";
139 }
140 #endif // NDEBUG
112 }; 141 };
113 142
114 // Values that may be OR'd together to form the 'flags' parameter of the 143 // Values that may be OR'd together to form the 'flags' parameter of the
115 // ViewMsg_EnablePreferredSizeChangedMode message. 144 // ViewMsg_EnablePreferredSizeChangedMode message.
116 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { 145 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
117 kPreferredSizeNothing, 146 kPreferredSizeNothing,
118 kPreferredSizeWidth = 1 << 0, 147 kPreferredSizeWidth = 1 << 0,
119 // Requesting the height currently requires a polling loop in render_view.cc. 148 // Requesting the height currently requires a polling loop in render_view.cc.
120 kPreferredSizeHeightThisIsSlow = 1 << 1, 149 kPreferredSizeHeightThisIsSlow = 1 << 1,
121 }; 150 };
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2125 int32 /* complete status */) 2154 int32 /* complete status */)
2126 2155
2127 // Request updated information about the client firewall traversal policy. 2156 // Request updated information about the client firewall traversal policy.
2128 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2157 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2129 // being sent back. 2158 // being sent back.
2130 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2159 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2131 2160
2132 // Notifies the browser of an event occurring in the media pipeline. 2161 // Notifies the browser of an event occurring in the media pipeline.
2133 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2162 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2134 media::MediaLogEvent /* event */) 2163 media::MediaLogEvent /* event */)
OLDNEW
« 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