Home | History | Annotate | Download | only in glue

Lines Matching refs:WebKit

5 #include "webkit/glue/webaccessibility.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityCache.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObject.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityRole.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAttribute.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocumentType.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNamedNodeMap.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
28 using WebKit::WebAccessibilityCache;
29 using WebKit::WebAccessibilityRole;
30 using WebKit::WebAccessibilityObject;
34 // Provides a conversion between the WebKit::WebAccessibilityRole and a role
37 WebAccessibility::Role ConvertRole(WebKit::WebAccessibilityRole role) {
39 case WebKit::WebAccessibilityRoleAnnotation:
41 case WebKit::WebAccessibilityRoleApplication:
43 case WebKit::WebAccessibilityRoleApplicationAlert:
45 case WebKit::WebAccessibilityRoleApplicationAlertDialog:
47 case WebKit::WebAccessibilityRoleApplicationDialog:
49 case WebKit::WebAccessibilityRoleApplicationLog:
51 case WebKit::WebAccessibilityRoleApplicationMarquee:
53 case WebKit::WebAccessibilityRoleApplicationStatus:
55 case WebKit::WebAccessibilityRoleApplicationTimer:
57 case WebKit::WebAccessibilityRoleBrowser:
59 case WebKit::WebAccessibilityRoleBusyIndicator:
61 case WebKit::WebAccessibilityRoleButton:
63 case WebKit::WebAccessibilityRoleCell:
65 case WebKit::WebAccessibilityRoleCheckBox:
67 case WebKit::WebAccessibilityRoleColorWell:
69 case WebKit::WebAccessibilityRoleColumn:
71 case WebKit::WebAccessibilityRoleColumnHeader:
73 case WebKit::WebAccessibilityRoleComboBox:
75 case WebKit::WebAccessibilityRoleDefinitionListDefinition:
77 case WebKit::WebAccessibilityRoleDefinitionListTerm:
79 case WebKit::WebAccessibilityRoleDirectory:
81 case WebKit::WebAccessibilityRoleDisclosureTriangle:
83 case WebKit::WebAccessibilityRoleDocument:
85 case WebKit::WebAccessibilityRoleDocumentArticle:
87 case WebKit::WebAccessibilityRoleDocumentMath:
89 case WebKit::WebAccessibilityRoleDocumentNote:
91 case WebKit::WebAccessibilityRoleDocumentRegion:
93 case WebKit::WebAccessibilityRoleDrawer:
95 case WebKit::WebAccessibilityRoleEditableText:
97 case WebKit::WebAccessibilityRoleGrid:
99 case WebKit::WebAccessibilityRoleGroup:
101 case WebKit::WebAccessibilityRoleGrowArea:
103 case WebKit::WebAccessibilityRoleHeading:
105 case WebKit::WebAccessibilityRoleHelpTag:
107 case WebKit::WebAccessibilityRoleIgnored:
109 case WebKit::WebAccessibilityRoleImage:
111 case WebKit::WebAccessibilityRoleImageMap:
113 case WebKit::WebAccessibilityRoleImageMapLink:
115 case WebKit::WebAccessibilityRoleIncrementor:
117 case WebKit::WebAccessibilityRoleLandmarkApplication:
119 case WebKit::WebAccessibilityRoleLandmarkBanner:
121 case WebKit::WebAccessibilityRoleLandmarkComplementary:
123 case WebKit::WebAccessibilityRoleLandmarkContentInfo:
125 case WebKit::WebAccessibilityRoleLandmarkMain:
127 case WebKit::WebAccessibilityRoleLandmarkNavigation:
129 case WebKit::WebAccessibilityRoleLandmarkSearch:
131 case WebKit::WebAccessibilityRoleLink:
133 case WebKit::WebAccessibilityRoleList:
135 case WebKit::WebAccessibilityRoleListBox:
137 case WebKit::WebAccessibilityRoleListBoxOption:
139 case WebKit::WebAccessibilityRoleListItem:
141 case WebKit::WebAccessibilityRoleListMarker:
143 case WebKit::WebAccessibilityRoleMatte:
145 case WebKit::WebAccessibilityRoleMenu:
147 case WebKit::WebAccessibilityRoleMenuBar:
149 case WebKit::WebAccessibilityRoleMenuButton:
151 case WebKit::WebAccessibilityRoleMenuItem:
153 case WebKit::WebAccessibilityRoleMenuListOption:
155 case WebKit::WebAccessibilityRoleMenuListPopup:
157 case WebKit::WebAccessibilityRoleOutline:
159 case WebKit::WebAccessibilityRolePopUpButton:
161 case WebKit::WebAccessibilityRoleProgressIndicator:
163 case WebKit::WebAccessibilityRoleRadioButton:
165 case WebKit::WebAccessibilityRoleRadioGroup:
167 case WebKit::WebAccessibilityRoleRow:
169 case WebKit::WebAccessibilityRoleRowHeader:
171 case WebKit::WebAccessibilityRoleRuler:
173 case WebKit::WebAccessibilityRoleRulerMarker:
175 case WebKit::WebAccessibilityRoleScrollArea:
177 case WebKit::WebAccessibilityRoleScrollBar:
179 case WebKit::WebAccessibilityRoleSheet:
181 case WebKit::WebAccessibilityRoleSlider:
183 case WebKit::WebAccessibilityRoleSliderThumb:
185 case WebKit::WebAccessibilityRoleSplitGroup:
187 case WebKit::WebAccessibilityRoleSplitter:
189 case WebKit::WebAccessibilityRoleStaticText:
191 case WebKit::WebAccessibilityRoleSystemWide:
193 case WebKit::WebAccessibilityRoleTab:
195 case WebKit::WebAccessibilityRoleTabGroup:
197 case WebKit::WebAccessibilityRoleTabList:
199 case WebKit::WebAccessibilityRoleTabPanel:
201 case WebKit::WebAccessibilityRoleTable:
203 case WebKit::WebAccessibilityRoleTableHeaderContainer:
205 case WebKit::WebAccessibilityRoleTextArea:
207 case WebKit::WebAccessibilityRoleTextField:
209 case WebKit::WebAccessibilityRoleToolbar:
211 case WebKit::WebAccessibilityRoleTreeGrid:
213 case WebKit::WebAccessibilityRoleTreeItemRole:
215 case WebKit::WebAccessibilityRoleTreeRole:
217 case WebKit::WebAccessibilityRoleUserInterfaceTooltip:
219 case WebKit::WebAccessibilityRoleValueIndicator:
221 case WebKit::WebAccessibilityRoleWebArea:
223 case WebKit::WebAccessibilityRoleWebCoreLink:
225 case WebKit::WebAccessibilityRoleWindow:
247 if (o.roleValue() == WebKit::WebAccessibilityRolePopUpButton) {
302 WebAccessibility::WebAccessibility(const WebKit::WebAccessibilityObject& src,
303 WebKit::WebAccessibilityCache* cache,
311 void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src,
312 WebKit::WebAccessibilityCache* cache,
333 WebKit::WebNode node = src.node();
337 WebKit::WebElement element = node.to<WebKit::WebElement>();
340 // TODO(ctguil): The tagName in WebKit is lower cased but
352 WebKit::WebFormControlElement form_element =
353 element.to<WebKit::WebFormControlElement>();
355 WebKit::WebInputElement input_element =
356 form_element.to<WebKit::WebInputElement>();
367 const WebKit::WebDocument& document = src.document();
373 attributes[ATTR_DOC_MIMETYPE] = WebKit::WebString("text/xhtml");
375 attributes[ATTR_DOC_MIMETYPE] = WebKit::WebString("text/html");
377 const WebKit::WebDocumentType& doctype = document.doctype();
397 // The child may be invalid due to issues in webkit accessibility code.
399 // https://bugs.webkit.org/show_bug.cgi?id=44149
400 // TODO(ctguil): We may want to remove this check as webkit stabilizes.
404 // Children may duplicated in the webkit accessibility tree. Only add a
406 // https://bugs.webkit.org/show_bug.cgi?id=58930
418 // https://bugs.webkit.org/show_bug.cgi?id=57066
429 const WebKit::WebAccessibilityObject& ancestor,
430 const WebKit::WebAccessibilityObject& child) {
431 WebKit::WebAccessibilityObject parent = child.parentObject();