summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/renderer/render_view.cc1
-rwxr-xr-xwebkit/api/public/WebAccessibilityController.h49
-rwxr-xr-xwebkit/api/src/WebAccessibilityController.cpp45
-rw-r--r--webkit/tools/test_shell/accessibility_controller.cc10
-rw-r--r--webkit/tools/test_shell/accessibility_ui_element.h5
-rw-r--r--webkit/webkit.gyp2
6 files changed, 101 insertions, 11 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index f89e8960..5a7516e 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -92,7 +92,6 @@
#include "webkit/glue/password_form.h"
#include "webkit/glue/plugins/plugin_list.h"
#include "webkit/glue/plugins/webplugin_delegate_impl.h"
-#include "webkit/glue/webaccessibilitymanager_impl.h"
#include "webkit/glue/webdropdata.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/webmediaplayer_impl.h"
diff --git a/webkit/api/public/WebAccessibilityController.h b/webkit/api/public/WebAccessibilityController.h
new file mode 100755
index 0000000..00dbd13
--- /dev/null
+++ b/webkit/api/public/WebAccessibilityController.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2009 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebAccessibilityController_h
+#define WebAccessibilityController_h
+
+#include "WebCommon.h"
+
+namespace WebKit {
+
+ // FIXME: Move all methods of WebAcessibilityManager here.
+ class WebAccessibilityController {
+ public:
+ WebAccessibilityController() {}
+ virtual ~WebAccessibilityController() {}
+
+ static void enableAccessibility();
+ };
+
+} // namespace WebKit
+
+#endif
diff --git a/webkit/api/src/WebAccessibilityController.cpp b/webkit/api/src/WebAccessibilityController.cpp
new file mode 100755
index 0000000..0136ac5
--- /dev/null
+++ b/webkit/api/src/WebAccessibilityController.cpp
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2009 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "WebAccessibilityController.h"
+
+#include "AXObjectCache.h"
+
+using namespace WebCore;
+
+namespace WebKit {
+
+void WebAccessibilityController::enableAccessibility()
+{
+ AXObjectCache::enableAccessibility();
+}
+
+}
diff --git a/webkit/tools/test_shell/accessibility_controller.cc b/webkit/tools/test_shell/accessibility_controller.cc
index 56fb1c6..41d4d3c 100644
--- a/webkit/tools/test_shell/accessibility_controller.cc
+++ b/webkit/tools/test_shell/accessibility_controller.cc
@@ -2,20 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "config.h"
-
#include <vector>
-#include "AXObjectCache.h"
-#undef LOG
+#include "webkit/tools/test_shell/accessibility_controller.h"
#include "base/logging.h"
+#include "webkit/api/public/WebAccessibilityController.h"
#include "webkit/api/public/WebAccessibilityObject.h"
#include "webkit/api/public/WebFrame.h"
#include "webkit/api/public/WebView.h"
-#include "webkit/tools/test_shell/accessibility_controller.h"
#include "webkit/tools/test_shell/test_shell.h"
+using WebKit::WebAccessibilityController;
using WebKit::WebAccessibilityObject;
using WebKit::WebFrame;
@@ -37,7 +35,7 @@ AccessibilityController::AccessibilityController(TestShell* shell)
void AccessibilityController::BindToJavascript(
WebFrame* frame, const std::wstring& classname) {
- WebCore::AXObjectCache::enableAccessibility();
+ WebAccessibilityController::enableAccessibility();
CppBoundClass::BindToJavascript(frame, classname);
}
diff --git a/webkit/tools/test_shell/accessibility_ui_element.h b/webkit/tools/test_shell/accessibility_ui_element.h
index 9340257..8b04020 100644
--- a/webkit/tools/test_shell/accessibility_ui_element.h
+++ b/webkit/tools/test_shell/accessibility_ui_element.h
@@ -6,10 +6,7 @@
#define WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_UI_ELEMENT_H_
#include "webkit/glue/cpp_bound_class.h"
-
-namespace WebKit {
-class WebAccessibilityObject;
-}
+#include "webkit/api/public/WebAccessibilityObject.h"
class AccessibilityUIElement : public CppBoundClass {
public:
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp
index d4f45c6..77b4fc9 100644
--- a/webkit/webkit.gyp
+++ b/webkit/webkit.gyp
@@ -76,6 +76,7 @@
'api/public/x11/WebScreenInfoFactory.h',
'api/public/mac/WebInputEventFactory.h',
'api/public/mac/WebScreenInfoFactory.h',
+ 'api/public/WebAccessibilityController.h',
'api/public/WebAccessibilityObject.h',
'api/public/WebAccessibilityRole.h',
'api/public/WebApplicationCacheHost.h',
@@ -221,6 +222,7 @@
'api/src/StorageNamespaceProxy.cpp',
'api/src/StorageNamespaceProxy.h',
'api/src/TemporaryGlue.h',
+ 'api/src/WebAccessibilityController.cpp',
'api/src/WebAccessibilityObject.cpp',
'api/src/WebBindings.cpp',
'api/src/WebCache.cpp',