Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / renderer / accessibility / renderer_accessibility_complete.h
index 227c72a..cb34c15 100644 (file)
@@ -37,18 +37,17 @@ class RenderViewImpl;
 class CONTENT_EXPORT RendererAccessibilityComplete
     : public RendererAccessibility {
  public:
-  explicit RendererAccessibilityComplete(RenderViewImpl* render_view);
+  explicit RendererAccessibilityComplete(RenderFrameImpl* render_frame);
   virtual ~RendererAccessibilityComplete();
 
-  // RenderView::Observer implementation.
+  // RenderFrameObserver implementation.
   virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-  virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE;
-  virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE;
 
   // RendererAccessibility.
   virtual void HandleWebAccessibilityEvent(
       const blink::WebAXObject& obj, blink::WebAXEvent event) OVERRIDE;
   virtual RendererAccessibilityType GetType() OVERRIDE;
+  virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE;
 
   void HandleAXEvent(const blink::WebAXObject& obj, ui::AXEvent event);
 
@@ -70,18 +69,9 @@ class CONTENT_EXPORT RendererAccessibilityComplete
   void OnScrollToPoint(int acc_obj_id, gfx::Point point);
   void OnSetFocus(int acc_obj_id);
   void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset);
+  void OnHitTest(gfx::Point point);
   void OnFatalError();
 
-  // Checks if a Blink accessibility object is an editable text node.
-  bool IsEditableText(const blink::WebAXObject& node);
-
-  // Recursively explore the tree of Blink accessibility objects rooted
-  // at |src|, and for each editable text node encountered, add a
-  // corresponding WebAccessibility node as a child of |dst|.
-  void RecursiveAddEditableTextNodesToTree(
-      const blink::WebAXObject& src,
-      ui::AXNodeData* dst);
-
   // So we can queue up tasks to be executed later.
   base::WeakPtrFactory<RendererAccessibilityComplete> weak_factory_;