summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc28
-rw-r--r--chrome/renderer/render_view.h19
2 files changed, 26 insertions, 21 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 5954e82..97c7c37 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -47,10 +47,10 @@
#include "webkit/default_plugin/default_plugin_shared.h"
#include "webkit/glue/dom_operations.h"
#include "webkit/glue/dom_serializer.h"
-#include "webkit/glue/glue_accessibility.h"
#include "webkit/glue/password_form.h"
#include "webkit/glue/plugins/plugin_list.h"
#include "webkit/glue/searchable_form_data.h"
+#include "webkit/glue/webaccessibilitymanager_impl.h"
#include "webkit/glue/webdatasource.h"
#include "webkit/glue/webdevtoolsagent_delegate.h"
#include "webkit/glue/webdropdata.h"
@@ -88,6 +88,7 @@
#endif
using base::TimeDelta;
+using webkit_glue::WebAccessibility;
//-----------------------------------------------------------------------------
@@ -1086,9 +1087,9 @@ void RenderView::UpdateURL(WebFrame* frame) {
extra_data->transition_type = PageTransition::LINK; // Just clear it.
#if defined(OS_WIN)
- if (glue_accessibility_.get()) {
+ if (web_accessibility_manager_.get()) {
// Clear accessibility info cache.
- glue_accessibility_->ClearIAccessibleMap(-1, true);
+ web_accessibility_manager_->ClearAccObjMap(-1, true);
}
#else
// TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
@@ -2629,14 +2630,16 @@ void RenderView::OnUpdateBackForwardListCount(int back_list_count,
}
void RenderView::OnGetAccessibilityInfo(
- const AccessibilityInParams& in_params,
- AccessibilityOutParams* out_params) {
+ const webkit_glue::WebAccessibility::InParams& in_params,
+ webkit_glue::WebAccessibility::OutParams* out_params) {
#if defined(OS_WIN)
- if (!glue_accessibility_.get())
- glue_accessibility_.reset(new GlueAccessibility());
+ if (!web_accessibility_manager_.get()) {
+ web_accessibility_manager_.reset(
+ webkit_glue::WebAccessibilityManager::Create());
+ }
- if (!glue_accessibility_->
- GetAccessibilityInfo(webview(), in_params, out_params)) {
+ if (!web_accessibility_manager_->GetAccObjInfo(webview(), in_params,
+ out_params)) {
return;
}
#else // defined(OS_WIN)
@@ -2645,14 +2648,13 @@ void RenderView::OnGetAccessibilityInfo(
#endif
}
-void RenderView::OnClearAccessibilityInfo(int iaccessible_id, bool clear_all) {
+void RenderView::OnClearAccessibilityInfo(int acc_obj_id, bool clear_all) {
#if defined(OS_WIN)
- if (!glue_accessibility_.get()) {
+ if (!web_accessibility_manager_.get()) {
// If accessibility is not activated, ignore clearing message.
return;
}
-
- if (!glue_accessibility_->ClearIAccessibleMap(iaccessible_id, clear_all))
+ if (!web_accessibility_manager_->ClearAccObjMap(acc_obj_id, clear_all))
return;
#else // defined(OS_WIN)
// TODO(port): accessibility not yet implemented
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 05e94c2..ac898bf 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -32,6 +32,7 @@
#include "webkit/glue/feed.h"
#include "webkit/glue/form_data.h"
#include "webkit/glue/password_form_dom_manager.h"
+#include "webkit/glue/webaccessibilitymanager.h"
#include "webkit/glue/webview_delegate.h"
#include "webkit/glue/webview.h"
@@ -48,18 +49,16 @@ class DebugMessageHandler;
class DevToolsAgent;
class DevToolsClient;
class FilePath;
-class GlueAccessibility;
class GURL;
class RenderThread;
class ResourceDispatcher;
class SkBitmap;
+class WebAccessibilityManager;
class WebError;
class WebFrame;
class WebPluginDelegate;
class WebPluginDelegateProxy;
class WebDevToolsAgentDelegate;
-struct AccessibilityInParams;
-struct AccessibilityOutParams;
struct FindInPageRequest;
struct ThumbnailScore;
struct ViewMsg_Navigate_Params;
@@ -74,6 +73,9 @@ class WaitableEvent;
namespace webkit_glue {
struct FileUploadData;
+//class WebAccessibility;
+//struct InParams;
+//struct OutParams;
}
// We need to prevent a page from trying to create infinite popups. It is not
@@ -517,9 +519,10 @@ class RenderView : public RenderWidget,
void OnEnableViewSourceMode();
void OnUpdateBackForwardListCount(int back_list_count,
int forward_list_count);
- void OnGetAccessibilityInfo(const AccessibilityInParams& in_params,
- AccessibilityOutParams* out_params);
- void OnClearAccessibilityInfo(int iaccessible_id, bool clear_all);
+ void OnGetAccessibilityInfo(
+ const webkit_glue::WebAccessibility::InParams& in_params,
+ webkit_glue::WebAccessibility::OutParams* out_params);
+ void OnClearAccessibilityInfo(int acc_obj_id, bool clear_all);
void OnMoveOrResizeStarted();
@@ -756,11 +759,11 @@ class RenderView : public RenderWidget,
// shouldn't count against their own |shared_popup_counter_|.
bool decrement_shared_popup_at_destruction_;
- // TODO(port): revisit once qwe have accessibility
+ // TODO(port): revisit once we have accessibility
#if defined(OS_WIN)
// Handles accessibility requests into the renderer side, as well as
// maintains the cache and other features of the accessibility tree.
- scoped_ptr<GlueAccessibility> glue_accessibility_;
+ scoped_ptr<webkit_glue::WebAccessibilityManager> web_accessibility_manager_;
#endif
// Resource message queue. Used to queue up resource IPCs if we need