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

Side by Side Diff: Source/testing/runner/AccessibilityController.cpp

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 2 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 | « Source/core/rendering/RenderText.cpp ('k') | Source/testing/runner/WebAXObjectProxy.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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bindProperty("rootElement", &AccessibilityController::rootElementGetterCallb ack); 54 bindProperty("rootElement", &AccessibilityController::rootElementGetterCallb ack);
55 55
56 bindMethod("accessibleElementById", &AccessibilityController::accessibleElem entByIdGetterCallback); 56 bindMethod("accessibleElementById", &AccessibilityController::accessibleElem entByIdGetterCallback);
57 57
58 bindFallbackMethod(&AccessibilityController::fallbackCallback); 58 bindFallbackMethod(&AccessibilityController::fallbackCallback);
59 } 59 }
60 60
61 void AccessibilityController::bindToJavascript(WebFrame* frame, const WebString& classname) 61 void AccessibilityController::bindToJavascript(WebFrame* frame, const WebString& classname)
62 { 62 {
63 WebAXObject::enableAccessibility(); 63 WebAXObject::enableAccessibility();
64 WebAXObject::enableInlineTextBoxAccessibility();
64 CppBoundClass::bindToJavascript(frame, classname); 65 CppBoundClass::bindToJavascript(frame, classname);
65 } 66 }
66 67
67 void AccessibilityController::reset() 68 void AccessibilityController::reset()
68 { 69 {
69 m_rootElement = WebAXObject(); 70 m_rootElement = WebAXObject();
70 m_focusedElement = WebAXObject(); 71 m_focusedElement = WebAXObject();
71 m_elements.clear(); 72 m_elements.clear();
72 m_notificationCallbacks.clear(); 73 m_notificationCallbacks.clear();
73 74
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 result->set(*(foundElement->getAsCppVariant())); 197 result->set(*(foundElement->getAsCppVariant()));
197 } 198 }
198 199
199 void AccessibilityController::fallbackCallback(const CppArgumentList&, CppVarian t* result) 200 void AccessibilityController::fallbackCallback(const CppArgumentList&, CppVarian t* result)
200 { 201 {
201 m_delegate->printMessage("CONSOLE MESSAGE: JavaScript ERROR: unknown method called on AccessibilityController\n"); 202 m_delegate->printMessage("CONSOLE MESSAGE: JavaScript ERROR: unknown method called on AccessibilityController\n");
202 result->setNull(); 203 result->setNull();
203 } 204 }
204 205
205 } 206 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.cpp ('k') | Source/testing/runner/WebAXObjectProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698