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

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
« no previous file with comments | « content/common/content_switches.cc ('k') | content/renderer/render_view.h » ('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 29 matching lines...) Expand all
40 #include "webkit/plugins/webplugininfo.h" 40 #include "webkit/plugins/webplugininfo.h"
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 #include "content/common/font_descriptor_mac.h" 43 #include "content/common/font_descriptor_mac.h"
44 #endif 44 #endif
45 45
46 // Define enums used in this file inside an include-guard. 46 // Define enums used in this file inside an include-guard.
47 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ 47 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_
48 #define CONTENT_COMMON_VIEW_MESSAGES_H_ 48 #define CONTENT_COMMON_VIEW_MESSAGES_H_
49 49
50 struct ViewHostMsg_AccessibilityNotification_Type { 50 struct ViewHostMsg_AccEvent {
51 enum Value { 51 enum Value {
52 // The active descendant of a node has changed.
53 ACTIVE_DESCENDANT_CHANGED,
54
55 // An alert appeared.
56 ALERT,
57
52 // The node checked state has changed. 58 // The node checked state has changed.
53 NOTIFICATION_TYPE_CHECK_STATE_CHANGED, 59 CHECK_STATE_CHANGED,
54 60
55 // The node tree structure has changed. 61 // The node tree structure has changed.
56 NOTIFICATION_TYPE_CHILDREN_CHANGED, 62 CHILDREN_CHANGED,
57 63
58 // The node in focus has changed. 64 // The node in focus has changed.
59 NOTIFICATION_TYPE_FOCUS_CHANGED, 65 FOCUS_CHANGED,
66
67 // Page layout has completed.
68 LAYOUT_COMPLETE,
69
70 // Content within a part of the page marked as a live region changed.
71 LIVE_REGION_CHANGED,
60 72
61 // The document node has loaded. 73 // The document node has loaded.
62 NOTIFICATION_TYPE_LOAD_COMPLETE, 74 LOAD_COMPLETE,
75
76 // A menu list value changed.
77 MENU_LIST_VALUE_CHANGED,
78
79 // An object was shown.
80 OBJECT_SHOW,
81
82 // An object was hidden.
83 OBJECT_HIDE,
84
85 // The number of rows in a grid or tree control changed.
86 ROW_COUNT_CHANGED,
87
88 // A row in a grid or tree control was collapsed.
89 ROW_COLLAPSED,
90
91 // A row in a grid or tree control was expanded.
92 ROW_EXPANDED,
93
94 // The document was scrolled to an anchor node.
95 SCROLLED_TO_ANCHOR,
96
97 // One or more selected children of this node have changed.
98 SELECTED_CHILDREN_CHANGED,
99
100 // The text cursor or selection changed.
101 SELECTED_TEXT_CHANGED,
102
103 // Text was inserted in a node with text content.
104 TEXT_INSERTED,
105
106 // Text was removed in a node with text content.
107 TEXT_REMOVED,
63 108
64 // The node value has changed. 109 // The node value has changed.
65 NOTIFICATION_TYPE_VALUE_CHANGED, 110 VALUE_CHANGED,
66
67 // The text cursor or selection changed.
68 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED,
69 }; 111 };
70 }; 112 };
71 113
72 // Values that may be OR'd together to form the 'flags' parameter of the 114 // Values that may be OR'd together to form the 'flags' parameter of the
73 // ViewMsg_EnablePreferredSizeChangedMode message. 115 // ViewMsg_EnablePreferredSizeChangedMode message.
74 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { 116 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
75 kPreferredSizeNothing, 117 kPreferredSizeNothing,
76 kPreferredSizeWidth = 1 << 0, 118 kPreferredSizeWidth = 1 << 0,
77 // Requesting the height currently requires a polling loop in render_view.cc. 119 // Requesting the height currently requires a polling loop in render_view.cc.
78 kPreferredSizeHeightThisIsSlow = 1 << 1, 120 kPreferredSizeHeightThisIsSlow = 1 << 1,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 195
154 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_ 196 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_
155 197
156 #define IPC_MESSAGE_START ViewMsgStart 198 #define IPC_MESSAGE_START ViewMsgStart
157 199
158 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 200 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
159 IPC_ENUM_TRAITS(NavigationGesture) 201 IPC_ENUM_TRAITS(NavigationGesture)
160 IPC_ENUM_TRAITS(PageZoom::Function) 202 IPC_ENUM_TRAITS(PageZoom::Function)
161 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) 203 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum)
162 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) 204 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum)
163 IPC_ENUM_TRAITS(ViewHostMsg_AccessibilityNotification_Type::Value) 205 IPC_ENUM_TRAITS(ViewHostMsg_AccEvent::Value)
164 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) 206 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value)
165 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 207 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
166 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) 208 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action)
167 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 209 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
168 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 210 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
169 IPC_ENUM_TRAITS(WebKit::WebPopupType) 211 IPC_ENUM_TRAITS(WebKit::WebPopupType)
170 IPC_ENUM_TRAITS(WebKit::WebTextDirection) 212 IPC_ENUM_TRAITS(WebKit::WebTextDirection)
171 IPC_ENUM_TRAITS(ui::TextInputType) 213 IPC_ENUM_TRAITS(ui::TextInputType)
172 IPC_ENUM_TRAITS(WebMenuItem::Type) 214 IPC_ENUM_TRAITS(WebMenuItem::Type)
173 IPC_ENUM_TRAITS(WindowContainerType) 215 IPC_ENUM_TRAITS(WindowContainerType)
216 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute)
217 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute)
174 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) 218 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute)
175 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) 219 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role)
176 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) 220 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State)
177 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) 221 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute)
178 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 222 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
179 223
180 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) 224 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams)
181 IPC_STRUCT_TRAITS_MEMBER(media_type) 225 IPC_STRUCT_TRAITS_MEMBER(media_type)
182 IPC_STRUCT_TRAITS_MEMBER(x) 226 IPC_STRUCT_TRAITS_MEMBER(x)
183 IPC_STRUCT_TRAITS_MEMBER(y) 227 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 411
368 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) 412 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility)
369 IPC_STRUCT_TRAITS_MEMBER(id) 413 IPC_STRUCT_TRAITS_MEMBER(id)
370 IPC_STRUCT_TRAITS_MEMBER(name) 414 IPC_STRUCT_TRAITS_MEMBER(name)
371 IPC_STRUCT_TRAITS_MEMBER(value) 415 IPC_STRUCT_TRAITS_MEMBER(value)
372 IPC_STRUCT_TRAITS_MEMBER(role) 416 IPC_STRUCT_TRAITS_MEMBER(role)
373 IPC_STRUCT_TRAITS_MEMBER(state) 417 IPC_STRUCT_TRAITS_MEMBER(state)
374 IPC_STRUCT_TRAITS_MEMBER(location) 418 IPC_STRUCT_TRAITS_MEMBER(location)
375 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 419 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
376 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 420 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
421 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
422 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
377 IPC_STRUCT_TRAITS_MEMBER(children) 423 IPC_STRUCT_TRAITS_MEMBER(children)
378 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids) 424 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids)
379 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 425 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
380 IPC_STRUCT_TRAITS_MEMBER(line_breaks) 426 IPC_STRUCT_TRAITS_MEMBER(line_breaks)
381 IPC_STRUCT_TRAITS_MEMBER(cell_ids) 427 IPC_STRUCT_TRAITS_MEMBER(cell_ids)
428 IPC_STRUCT_TRAITS_MEMBER(unique_cell_ids)
382 IPC_STRUCT_TRAITS_END() 429 IPC_STRUCT_TRAITS_END()
383 430
384 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie) 431 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie)
385 IPC_STRUCT_TRAITS_MEMBER(name) 432 IPC_STRUCT_TRAITS_MEMBER(name)
386 IPC_STRUCT_TRAITS_MEMBER(value) 433 IPC_STRUCT_TRAITS_MEMBER(value)
387 IPC_STRUCT_TRAITS_MEMBER(domain) 434 IPC_STRUCT_TRAITS_MEMBER(domain)
388 IPC_STRUCT_TRAITS_MEMBER(path) 435 IPC_STRUCT_TRAITS_MEMBER(path)
389 IPC_STRUCT_TRAITS_MEMBER(expires) 436 IPC_STRUCT_TRAITS_MEMBER(expires)
390 IPC_STRUCT_TRAITS_MEMBER(http_only) 437 IPC_STRUCT_TRAITS_MEMBER(http_only)
391 IPC_STRUCT_TRAITS_MEMBER(secure) 438 IPC_STRUCT_TRAITS_MEMBER(secure)
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // True if the connection was proxied. In this case, socket_address 600 // True if the connection was proxied. In this case, socket_address
554 // will represent the address of the proxy, rather than the remote host. 601 // will represent the address of the proxy, rather than the remote host.
555 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) 602 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
556 603
557 // Serialized history item state to store in the navigation entry. 604 // Serialized history item state to store in the navigation entry.
558 IPC_STRUCT_MEMBER(std::string, content_state) 605 IPC_STRUCT_MEMBER(std::string, content_state)
559 IPC_STRUCT_END() 606 IPC_STRUCT_END()
560 607
561 IPC_STRUCT_BEGIN(ViewHostMsg_AccessibilityNotification_Params) 608 IPC_STRUCT_BEGIN(ViewHostMsg_AccessibilityNotification_Params)
562 // Type of notification. 609 // Type of notification.
563 IPC_STRUCT_MEMBER(ViewHostMsg_AccessibilityNotification_Type::Value, 610 IPC_STRUCT_MEMBER(ViewHostMsg_AccEvent::Value, notification_type)
564 notification_type)
565 611
566 // The accessibility node tree. 612 // The accessibility node tree.
567 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_obj) 613 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_obj)
568 IPC_STRUCT_END() 614 IPC_STRUCT_END()
569 615
570 616
571 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params) 617 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params)
572 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode) 618 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode)
573 619
574 // Title to be used for the dialog. This may be empty for the default title, 620 // Title to be used for the dialog. This may be empty for the default title,
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 int32 /* complete status */) 2141 int32 /* complete status */)
2096 2142
2097 // Request updated information about the client firewall traversal policy. 2143 // Request updated information about the client firewall traversal policy.
2098 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2144 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2099 // being sent back. 2145 // being sent back.
2100 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2146 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2101 2147
2102 // Notifies the browser of an event occurring in the media pipeline. 2148 // Notifies the browser of an event occurring in the media pipeline.
2103 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2149 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2104 media::MediaLogEvent /* event */) 2150 media::MediaLogEvent /* event */)
OLDNEW
« no previous file with comments | « content/common/content_switches.cc ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698