| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |