Chromium Code Reviews| Index: content/browser/renderer_host/render_view_host_impl.h |
| diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h |
| index dbb1956e2bd845b19f25d27f4b14fe53533b39a6..87ee2cd34c080142c140d13c68ce24ee1d5ab918 100644 |
| --- a/content/browser/renderer_host/render_view_host_impl.h |
| +++ b/content/browser/renderer_host/render_view_host_impl.h |
| @@ -15,7 +15,6 @@ |
| #include "base/process/kill.h" |
| #include "content/browser/renderer_host/render_widget_host_impl.h" |
| #include "content/browser/site_instance_impl.h" |
| -#include "content/common/accessibility_node_data.h" |
| #include "content/common/drag_event_source_info.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/render_view_host.h" |
| @@ -28,6 +27,7 @@ |
| #include "third_party/WebKit/public/web/WebPopupType.h" |
| #include "third_party/WebKit/public/web/WebTextDirection.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| +#include "ui/accessibility/ax_node_data.h" |
| #include "ui/base/window_open_disposition.h" |
| class SkBitmap; |
| @@ -54,6 +54,7 @@ class Range; |
| namespace ui { |
| struct SelectedFileInfo; |
| +class AXTree; |
|
jam
2014/01/06 21:51:53
nit: class before struct
dmazzoni
2014/01/06 22:25:53
Done.
|
| } |
| namespace content { |
| @@ -437,14 +438,15 @@ class CONTENT_EXPORT RenderViewHostImpl |
| // renderer process, and the accessibility tree it sent can be |
| // retrieved using accessibility_tree_for_testing(). |
| void SetAccessibilityCallbackForTesting( |
| - const base::Callback<void(blink::WebAXEvent)>& callback); |
| + const base::Callback<void(ui::AXEvent)>& callback); |
| // Only valid if SetAccessibilityCallbackForTesting was called and |
| // the callback was run at least once. Returns a snapshot of the |
| // accessibility tree received from the renderer as of the last time |
| - // a LoadComplete or LayoutComplete accessibility notification was received. |
| - const AccessibilityNodeDataTreeNode& accessibility_tree_for_testing() { |
| - return accessibility_tree_; |
| + // an accessibility notification was received. |
| + const ui::AXTree& ax_tree_for_testing() { |
| + CHECK(ax_tree_.get()); |
| + return *ax_tree_.get(); |
| } |
| // Set accessibility callbacks. |
| @@ -693,10 +695,10 @@ class CONTENT_EXPORT RenderViewHostImpl |
| std::map<int, JavascriptResultCallback> javascript_callbacks_; |
| // Accessibility callback for testing. |
| - base::Callback<void(blink::WebAXEvent)> accessibility_testing_callback_; |
| + base::Callback<void(ui::AXEvent)> accessibility_testing_callback_; |
| // The most recently received accessibility tree - for testing only. |
| - AccessibilityNodeDataTreeNode accessibility_tree_; |
| + scoped_ptr<ui::AXTree> ax_tree_; |
| // True if the render view can be shut down suddenly. |
| bool sudden_termination_allowed_; |