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

Unified Diff: trunk/src/content/browser/renderer_host/render_widget_host_view_base.h

Issue 408663006: Revert 284065 "Revert of Revert of Migrate accessibility from Re..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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: trunk/src/content/browser/renderer_host/render_widget_host_view_base.h
===================================================================
--- trunk/src/content/browser/renderer_host/render_widget_host_view_base.h (revision 284469)
+++ trunk/src/content/browser/renderer_host/render_widget_host_view_base.h (working copy)
@@ -50,7 +50,6 @@
}
namespace content {
-class BrowserAccessibilityDelegate;
class BrowserAccessibilityManager;
class SyntheticGesture;
class SyntheticGestureTarget;
@@ -89,6 +88,11 @@
blink::WebPopupType GetPopupType();
+ // Get the BrowserAccessibilityManager if it exists, may return NULL.
+ BrowserAccessibilityManager* GetBrowserAccessibilityManager() const;
+
+ void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
+
// Return a value that is incremented each time the renderer swaps a new frame
// to the view.
uint32 RendererFrameNumber();
@@ -147,11 +151,13 @@
// Return true if frame subscription is supported on this platform.
virtual bool CanSubscribeFrame() const;
- // Create a BrowserAccessibilityManager for this view.
- virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
- BrowserAccessibilityDelegate* delegate);
+ // Create a BrowserAccessibilityManager for this view if it's possible to
+ // create one and if one doesn't exist already. Some ports may not create
+ // one depending on the current state.
+ virtual void CreateBrowserAccessibilityManagerIfNeeded();
- virtual void AccessibilityShowMenu(const gfx::Point& point);
+ virtual void OnAccessibilitySetFocus(int acc_obj_id);
+ virtual void AccessibilityShowMenu(int acc_obj_id);
virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds);
virtual SkColorType PreferredReadbackFormat();
@@ -420,6 +426,9 @@
private:
void FlushInput();
+ // Manager of the tree representation of the WebKit render tree.
+ scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
+
gfx::Rect current_display_area_;
uint32 renderer_frame_number_;

Powered by Google App Engine
This is Rietveld 408576698