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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 { | 62 { |
63 WebAccessibilityObject::enableAccessibility(); | 63 WebAccessibilityObject::enableAccessibility(); |
64 CppBoundClass::bindToJavascript(frame, classname); | 64 CppBoundClass::bindToJavascript(frame, classname); |
65 } | 65 } |
66 | 66 |
67 void AccessibilityController::reset() | 67 void AccessibilityController::reset() |
68 { | 68 { |
69 m_rootElement = WebAccessibilityObject(); | 69 m_rootElement = WebAccessibilityObject(); |
70 m_focusedElement = WebAccessibilityObject(); | 70 m_focusedElement = WebAccessibilityObject(); |
71 m_elements.clear(); | 71 m_elements.clear(); |
| 72 m_notificationCallbacks.clear(); |
72 | 73 |
73 m_logAccessibilityEvents = false; | 74 m_logAccessibilityEvents = false; |
74 } | 75 } |
75 | 76 |
76 void AccessibilityController::setFocusedElement(const WebAccessibilityObject& fo
cusedElement) | 77 void AccessibilityController::setFocusedElement(const WebAccessibilityObject& fo
cusedElement) |
77 { | 78 { |
78 m_focusedElement = focusedElement; | 79 m_focusedElement = focusedElement; |
79 } | 80 } |
80 | 81 |
81 AccessibilityUIElement* AccessibilityController::getFocusedElement() | 82 AccessibilityUIElement* AccessibilityController::getFocusedElement() |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 result->set(*(foundElement->getAsCppVariant())); | 196 result->set(*(foundElement->getAsCppVariant())); |
196 } | 197 } |
197 | 198 |
198 void AccessibilityController::fallbackCallback(const CppArgumentList&, CppVarian
t* result) | 199 void AccessibilityController::fallbackCallback(const CppArgumentList&, CppVarian
t* result) |
199 { | 200 { |
200 m_delegate->printMessage("CONSOLE MESSAGE: JavaScript ERROR: unknown method
called on AccessibilityController\n"); | 201 m_delegate->printMessage("CONSOLE MESSAGE: JavaScript ERROR: unknown method
called on AccessibilityController\n"); |
201 result->setNull(); | 202 result->setNull(); |
202 } | 203 } |
203 | 204 |
204 } | 205 } |
OLD | NEW |