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 af0d5d2dd7dc203cdeed00a440deecf2007ab253..29f1a439e7cbc22a7ed2211374787fb83314a241 100644 |
| --- a/content/browser/renderer_host/render_view_host_impl.h |
| +++ b/content/browser/renderer_host/render_view_host_impl.h |
| @@ -393,6 +393,16 @@ class CONTENT_EXPORT RenderViewHostImpl |
| // User rotated the screen. Calls the "onorientationchange" Javascript hook. |
| void SendOrientationChangeEvent(int orientation); |
| + const std::string& frame_tree() const { |
| + return frame_tree_; |
| + } |
| + |
| + // Updates the frame tree for this RVH and sends an IPC down to the renderer |
| + // process to keep them in sync. |
|
awong
2012/08/22 22:25:47
Refer to comment in view_messages.h.
nasko
2012/08/23 21:55:53
Done.
|
| + void UpdateFrameTree(int process_id, |
| + int route_id, |
| + const std::string& frame_tree); |
| + |
| void set_save_accessibility_tree_for_testing(bool save) { |
| save_accessibility_tree_for_testing_ = save; |
| } |
| @@ -542,6 +552,7 @@ class CONTENT_EXPORT RenderViewHostImpl |
| void OnRunFileChooser(const FileChooserParams& params); |
| void OnDomOperationResponse(const std::string& json_string, |
| int automation_id); |
| + void OnFrameTreeUpdated(const std::string& frame_tree); |
| #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| @@ -637,6 +648,10 @@ class CONTENT_EXPORT RenderViewHostImpl |
| // for unit testing. |
| bool send_accessibility_updated_notifications_; |
| + // A JSON serialized representation of the frame tree for the current document |
| + // in the render view. |
|
awong
2012/08/22 22:25:47
Refer to the comment in view_messages so people ca
nasko
2012/08/23 21:55:53
Done.
|
| + std::string frame_tree_; |
| + |
| // The most recently received accessibility tree - for unit testing only. |
| AccessibilityNodeData accessibility_tree_; |