summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/accessibility_controller.h
diff options
context:
space:
mode:
authordglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:18:16 +0000
committerdglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:18:16 +0000
commit95991730af7216b4551586a047831293a66ba8a6 (patch)
treec10c8678d4a0585885e1a2984ea7c07bb0554c3c /webkit/tools/test_shell/accessibility_controller.h
parent1e5ae8646926d820f3f30f1eb2f60c91442e0130 (diff)
downloadchromium_src-95991730af7216b4551586a047831293a66ba8a6.zip
chromium_src-95991730af7216b4551586a047831293a66ba8a6.tar.gz
chromium_src-95991730af7216b4551586a047831293a66ba8a6.tar.bz2
Initial accessibility controller implementation.
This is just a first pass, to avoid patch-hugeness. R=darin TEST=LayoutTests/accessibility BUG=10322 Review URL: http://codereview.chromium.org/275009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/accessibility_controller.h')
-rwxr-xr-xwebkit/tools/test_shell/accessibility_controller.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/accessibility_controller.h b/webkit/tools/test_shell/accessibility_controller.h
new file mode 100755
index 0000000..018c2f1
--- /dev/null
+++ b/webkit/tools/test_shell/accessibility_controller.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_
+#define WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_
+
+#include "webkit/glue/cpp_bound_class.h"
+#include "webkit/tools/test_shell/accessibility_ui_element.h"
+
+namespace WebKit {
+class WebAccessibilityObject;
+class WebFrame;
+}
+
+class AccessibilityUIElement;
+class AccessibilityUIElementList;
+class TestShell;
+
+class AccessibilityController : public CppBoundClass {
+ public:
+ explicit AccessibilityController(TestShell* shell);
+
+ // shadow to include accessibility initialization.
+ void BindToJavascript(
+ WebKit::WebFrame* frame, const std::wstring& classname);
+ void Reset();
+
+ void SetFocusedElement(const WebKit::WebAccessibilityObject& focused_element);
+ AccessibilityUIElement* GetFocusedElement();
+ AccessibilityUIElement* GetRootElement();
+
+ private:
+ // Bound methods and properties
+ void LogFocusEventsCallback(const CppArgumentList& args, CppVariant* result);
+ void LogScrollingStartEventsCallback(
+ const CppArgumentList& args, CppVariant* result);
+ void FallbackCallback(const CppArgumentList& args, CppVariant* result);
+
+ void FocusedElementGetterCallback(CppVariant* result);
+ void RootElementGetterCallback(CppVariant* result);
+
+ WebKit::WebAccessibilityObject focused_element_;
+ WebKit::WebAccessibilityObject root_element_;
+
+ AccessibilityUIElementList elements_;
+
+ TestShell* shell_;
+};
+
+#endif // WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_