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

Side by Side Diff: content/common/view_messages.h

Issue 7745035: Add a big grab bag of missing web accessibility functionality... (Closed) Base URL: svn://chrome-svn/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 unified diff | Download patch | Annotate | Revision Log
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 29 matching lines...) Expand all
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 #include "content/common/font_descriptor_mac.h" 41 #include "content/common/font_descriptor_mac.h"
42 #endif 42 #endif
43 43
44 // Define enums used in this file inside an include-guard. 44 // Define enums used in this file inside an include-guard.
45 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ 45 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_
46 #define CONTENT_COMMON_VIEW_MESSAGES_H_ 46 #define CONTENT_COMMON_VIEW_MESSAGES_H_
47 47
48 struct ViewHostMsg_AccessibilityNotification_Type { 48 struct ViewHostMsg_AccessibilityNotification_Type {
49 enum Value { 49 enum Value {
50 // The active descendant of a node has changed.
51 NOTIFICATION_TYPE_ACTIVE_DESCENDANT_CHANGED,
52
50 // The node checked state has changed. 53 // The node checked state has changed.
51 NOTIFICATION_TYPE_CHECK_STATE_CHANGED, 54 NOTIFICATION_TYPE_CHECK_STATE_CHANGED,
52 55
53 // The node tree structure has changed. 56 // The node tree structure has changed.
54 NOTIFICATION_TYPE_CHILDREN_CHANGED, 57 NOTIFICATION_TYPE_CHILDREN_CHANGED,
55 58
56 // The node in focus has changed. 59 // The node in focus has changed.
57 NOTIFICATION_TYPE_FOCUS_CHANGED, 60 NOTIFICATION_TYPE_FOCUS_CHANGED,
58 61
62 // Page layout has completed.
63 NOTIFICATION_TYPE_LAYOUT_COMPLETE,
64
59 // The document node has loaded. 65 // The document node has loaded.
60 NOTIFICATION_TYPE_LOAD_COMPLETE, 66 NOTIFICATION_TYPE_LOAD_COMPLETE,
61 67
68 // One or more selected children of this node have changed.
69 NOTIFICATION_TYPE_SELECTED_CHILDREN_CHANGED,
70
71 // The text cursor or selection changed.
72 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED,
73
62 // The node value has changed. 74 // The node value has changed.
63 NOTIFICATION_TYPE_VALUE_CHANGED, 75 NOTIFICATION_TYPE_VALUE_CHANGED,
64 76
65 // The text cursor or selection changed. 77 // The document was scrolled to an anchor node.
66 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED, 78 NOTIFICATION_TYPE_SCROLLED_TO_ANCHOR,
79
80 // Content within a part of the page marked as a live region changed.
81 NOTIFICATION_TYPE_LIVE_REGION_CHANGED,
82
83 // A menu list value changed.
84 NOTIFICATION_TYPE_MENU_LIST_VALUE_CHANGED,
85
86 // The number of rows in a grid or tree control changed.
87 NOTIFICATION_TYPE_ROW_COUNT_CHANGED,
88
89 // A row in a grid or tree control was collapsed.
90 NOTIFICATION_TYPE_ROW_COLLAPSED,
91
92 // A row in a grid or tree control was expanded.
93 NOTIFICATION_TYPE_ROW_EXPANDED,
94
95 // Text was inserted in a node with text content.
96 NOTIFICATION_TYPE_TEXT_INSERTED,
97
98 // Text was removed in a node with text content.
99 NOTIFICATION_TYPE_TEXT_REMOVED,
100
101 // An object was shown.
102 NOTIFICATION_TYPE_OBJECT_SHOW,
103
104 // An object was hidden.
105 NOTIFICATION_TYPE_OBJECT_HIDE,
106
107 // An alert appeared.
108 NOTIFICATION_TYPE_ALERT,
David Tseng 2011/08/26 16:14:37 nit: sort alphabetically.
dmazzoni 2011/08/29 18:08:51 Done.
67 }; 109 };
68 }; 110 };
69 111
70 // Values that may be OR'd together to form the 'flags' parameter of the 112 // Values that may be OR'd together to form the 'flags' parameter of the
71 // ViewMsg_EnablePreferredSizeChangedMode message. 113 // ViewMsg_EnablePreferredSizeChangedMode message.
72 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { 114 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
73 kPreferredSizeNothing, 115 kPreferredSizeNothing,
74 kPreferredSizeWidth = 1 << 0, 116 kPreferredSizeWidth = 1 << 0,
75 // Requesting the height currently requires a polling loop in render_view.cc. 117 // Requesting the height currently requires a polling loop in render_view.cc.
76 kPreferredSizeHeightThisIsSlow = 1 << 1, 118 kPreferredSizeHeightThisIsSlow = 1 << 1,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) 204 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value)
163 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 205 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
164 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) 206 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action)
165 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 207 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
166 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 208 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
167 IPC_ENUM_TRAITS(WebKit::WebPopupType) 209 IPC_ENUM_TRAITS(WebKit::WebPopupType)
168 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 210 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
169 IPC_ENUM_TRAITS(ui::TextInputType) 211 IPC_ENUM_TRAITS(ui::TextInputType)
170 IPC_ENUM_TRAITS(WebMenuItem::Type) 212 IPC_ENUM_TRAITS(WebMenuItem::Type)
171 IPC_ENUM_TRAITS(WindowContainerType) 213 IPC_ENUM_TRAITS(WindowContainerType)
214 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute)
215 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute)
172 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) 216 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute)
173 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) 217 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role)
174 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) 218 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State)
175 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) 219 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute)
176 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 220 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
177 221
178 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) 222 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams)
179 IPC_STRUCT_TRAITS_MEMBER(media_type) 223 IPC_STRUCT_TRAITS_MEMBER(media_type)
180 IPC_STRUCT_TRAITS_MEMBER(x) 224 IPC_STRUCT_TRAITS_MEMBER(x)
181 IPC_STRUCT_TRAITS_MEMBER(y) 225 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 409
366 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) 410 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility)
367 IPC_STRUCT_TRAITS_MEMBER(id) 411 IPC_STRUCT_TRAITS_MEMBER(id)
368 IPC_STRUCT_TRAITS_MEMBER(name) 412 IPC_STRUCT_TRAITS_MEMBER(name)
369 IPC_STRUCT_TRAITS_MEMBER(value) 413 IPC_STRUCT_TRAITS_MEMBER(value)
370 IPC_STRUCT_TRAITS_MEMBER(role) 414 IPC_STRUCT_TRAITS_MEMBER(role)
371 IPC_STRUCT_TRAITS_MEMBER(state) 415 IPC_STRUCT_TRAITS_MEMBER(state)
372 IPC_STRUCT_TRAITS_MEMBER(location) 416 IPC_STRUCT_TRAITS_MEMBER(location)
373 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 417 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
374 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 418 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
419 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
420 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
375 IPC_STRUCT_TRAITS_MEMBER(children) 421 IPC_STRUCT_TRAITS_MEMBER(children)
376 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids) 422 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids)
377 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 423 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
378 IPC_STRUCT_TRAITS_MEMBER(line_breaks) 424 IPC_STRUCT_TRAITS_MEMBER(line_breaks)
379 IPC_STRUCT_TRAITS_MEMBER(cell_ids) 425 IPC_STRUCT_TRAITS_MEMBER(cell_ids)
426 IPC_STRUCT_TRAITS_MEMBER(unique_cell_ids)
380 IPC_STRUCT_TRAITS_END() 427 IPC_STRUCT_TRAITS_END()
381 428
382 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie) 429 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie)
383 IPC_STRUCT_TRAITS_MEMBER(name) 430 IPC_STRUCT_TRAITS_MEMBER(name)
384 IPC_STRUCT_TRAITS_MEMBER(value) 431 IPC_STRUCT_TRAITS_MEMBER(value)
385 IPC_STRUCT_TRAITS_MEMBER(domain) 432 IPC_STRUCT_TRAITS_MEMBER(domain)
386 IPC_STRUCT_TRAITS_MEMBER(path) 433 IPC_STRUCT_TRAITS_MEMBER(path)
387 IPC_STRUCT_TRAITS_MEMBER(expires) 434 IPC_STRUCT_TRAITS_MEMBER(expires)
388 IPC_STRUCT_TRAITS_MEMBER(http_only) 435 IPC_STRUCT_TRAITS_MEMBER(http_only)
389 IPC_STRUCT_TRAITS_MEMBER(secure) 436 IPC_STRUCT_TRAITS_MEMBER(secure)
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 int32 /* complete status */) 2133 int32 /* complete status */)
2087 2134
2088 // Request updated information about the client firewall traversal policy. 2135 // Request updated information about the client firewall traversal policy.
2089 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2136 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2090 // being sent back. 2137 // being sent back.
2091 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2138 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2092 2139
2093 // Notifies the browser of an event occurring in the media pipeline. 2140 // Notifies the browser of an event occurring in the media pipeline.
2094 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2141 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2095 media::MediaLogEvent /* event */) 2142 media::MediaLogEvent /* event */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698