summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_widget_host.h
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-25 06:41:14 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-25 06:41:14 +0000
commitdea2d37cbf7cfa80b8c357d81ca706ac856325b6 (patch)
treea2c6b4991563ffa0567729693951e2eb7e187ee5 /chrome/browser/renderer_host/render_widget_host.h
parent9d3f7d5e85d9834495434d7b925c1ba7933a344f (diff)
downloadchromium_src-dea2d37cbf7cfa80b8c357d81ca706ac856325b6.zip
chromium_src-dea2d37cbf7cfa80b8c357d81ca706ac856325b6.tar.gz
chromium_src-dea2d37cbf7cfa80b8c357d81ca706ac856325b6.tar.bz2
Support additional webkit accessibility notifications and states.
1. Update WebAccessibility::ConvertState to function similarly to WebCore's AccessibleBase::get_accState. 2. Use WebKit's load complete notification to send the renderer's tree to the browser. We enable accessibility on the renderer now instead of requesting a tree. 3. Use WebKit's focused ui element notification to send renderer focus events to the browser. BUG=13291 BUG=38106 TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotificationActiveDescendantChanged TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotificationFocusChanged Review URL: http://codereview.chromium.org/3380017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host.h')
-rw-r--r--chrome/browser/renderer_host/render_widget_host.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host.h b/chrome/browser/renderer_host/render_widget_host.h
index 8fcedd1..390cc31 100644
--- a/chrome/browser/renderer_host/render_widget_host.h
+++ b/chrome/browser/renderer_host/render_widget_host.h
@@ -146,6 +146,7 @@ class RenderWidgetHost : public IPC::Channel::Listener,
RenderProcessHost* process() const { return process_; }
int routing_id() const { return routing_id_; }
+ static bool renderer_accessible() { return renderer_accessible_; }
// Set the PaintObserver on this object. Takes ownership.
void set_paint_observer(PaintObserver* paint_observer) {
@@ -399,13 +400,6 @@ class RenderWidgetHost : public IPC::Channel::Listener,
}
protected:
- // Aid for determining when an accessibility tree request can be made. Set by
- // TabContents to true on document load and to false on page navigation.
- void SetDocumentLoaded(bool document_loaded);
-
- // Requests a snapshot of an accessible DOM tree from the renderer.
- void RequestAccessibilityTree();
-
// Internal implementation of the public Forward*Event() methods.
void ForwardInputEvent(const WebKit::WebInputEvent& input_event,
int event_size, bool is_keyboard_shortcut);
@@ -688,14 +682,6 @@ class RenderWidgetHost : public IPC::Channel::Listener,
// changed.
bool suppress_next_char_events_;
- // Keep track of if we have a loaded document so that we can request an
- // accessibility tree on demand when renderer accessibility is enabled.
- bool document_loaded_;
-
- // Keep track of if we've already requested the accessibility tree so
- // we don't do it more than once.
- bool requested_accessibility_tree_;
-
// Optional video YUV layer for used for out-of-process compositing.
scoped_ptr<VideoLayer> video_layer_;