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

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

Issue 23071004: AccessibilityController::reset() should reset all notification listener callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback-expected.txt ('k') | no next file » | 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698