| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ | |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ | |
| 7 | |
| 8 #include "webkit/glue/cpp_bound_class.h" | |
| 9 #include "webkit/tools/test_shell/accessibility_ui_element.h" | |
| 10 | |
| 11 namespace WebKit { | |
| 12 class WebAccessibilityObject; | |
| 13 class WebFrame; | |
| 14 } | |
| 15 | |
| 16 class AccessibilityUIElement; | |
| 17 class AccessibilityUIElementList; | |
| 18 class TestShell; | |
| 19 | |
| 20 class AccessibilityController : public CppBoundClass { | |
| 21 public: | |
| 22 explicit AccessibilityController(TestShell* shell); | |
| 23 | |
| 24 // shadow to include accessibility initialization. | |
| 25 void BindToJavascript(WebKit::WebFrame* frame, const std::string& classname); | |
| 26 void Reset(); | |
| 27 | |
| 28 void SetFocusedElement(const WebKit::WebAccessibilityObject& focused_element); | |
| 29 AccessibilityUIElement* GetFocusedElement(); | |
| 30 AccessibilityUIElement* GetRootElement(); | |
| 31 | |
| 32 private: | |
| 33 // Bound methods and properties | |
| 34 void LogFocusEventsCallback(const CppArgumentList& args, CppVariant* result); | |
| 35 void LogScrollingStartEventsCallback( | |
| 36 const CppArgumentList& args, CppVariant* result); | |
| 37 void FallbackCallback(const CppArgumentList& args, CppVariant* result); | |
| 38 | |
| 39 void FocusedElementGetterCallback(CppVariant* result); | |
| 40 void RootElementGetterCallback(CppVariant* result); | |
| 41 | |
| 42 WebKit::WebAccessibilityObject focused_element_; | |
| 43 WebKit::WebAccessibilityObject root_element_; | |
| 44 | |
| 45 AccessibilityUIElementList elements_; | |
| 46 | |
| 47 TestShell* shell_; | |
| 48 }; | |
| 49 | |
| 50 #endif // WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ | |
| OLD | NEW |