Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5762)

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_win.h

Issue 1637018: Reimplement web content accessibility by caching in browser process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_view_win.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.h (revision 46908)
+++ chrome/browser/renderer_host/render_widget_host_view_win.h (working copy)
@@ -13,8 +13,10 @@
#include "base/scoped_comptr_win.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
+#include "chrome/browser/browser_accessibility_manager.h"
#include "chrome/browser/ime_input.h"
#include "chrome/browser/renderer_host/render_widget_host_view.h"
+#include "chrome/common/notification_registrar.h"
#include "webkit/glue/webcursor.h"
namespace gfx {
@@ -55,7 +57,8 @@
: public CWindowImpl<RenderWidgetHostViewWin,
CWindow,
RenderWidgetHostHWNDTraits>,
- public RenderWidgetHostView {
+ public RenderWidgetHostView,
+ public NotificationObserver {
public:
// The view will associate itself with the given widget.
explicit RenderWidgetHostViewWin(RenderWidgetHost* widget);
@@ -141,7 +144,16 @@
virtual void SetBackground(const SkBitmap& background);
virtual bool ContainsNativeView(gfx::NativeView native_view) const;
virtual void SetVisuallyDeemphasized(bool deemphasized);
+ virtual void UpdateAccessibilityTree(
+ const webkit_glue::WebAccessibility& tree);
+ virtual void OnAccessibilityFocusChange(int acc_obj_id);
+ virtual void OnAccessibilityObjectStateChange(int acc_obj_id);
+ // Implementation of NotificationObserver:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
protected:
// Windows Message Handlers
LRESULT OnCreate(CREATESTRUCT* create_struct);
@@ -296,7 +308,7 @@
// Instance of accessibility information for the root of the MSAA
// tree representation of the WebKit render tree.
- ScopedComPtr<IAccessible> browser_accessibility_root_;
+ scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
// The time at which this view started displaying white pixels as a result of
// not having anything to paint (empty backing store from renderer). This
@@ -315,6 +327,9 @@
// whenever we paint.
bool visually_deemphasized_;
+ // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events.
+ NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
};
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698