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

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 1420203007: Correctly find root RWHV from a nested WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/if/while Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Returns whether this manager belongs to a FrameTreeNode that belongs to an 225 // Returns whether this manager belongs to a FrameTreeNode that belongs to an
226 // inner WebContents. 226 // inner WebContents.
227 bool ForInnerDelegate(); 227 bool ForInnerDelegate();
228 228
229 // Returns the RenderWidgetHost of the outer WebContents (if any) that can be 229 // Returns the RenderWidgetHost of the outer WebContents (if any) that can be
230 // used to fetch the last keyboard event. 230 // used to fetch the last keyboard event.
231 // TODO(lazyboy): This can be removed once input events are sent directly to 231 // TODO(lazyboy): This can be removed once input events are sent directly to
232 // remote frames. 232 // remote frames.
233 RenderWidgetHostImpl* GetOuterRenderWidgetHostForKeyboardInput(); 233 RenderWidgetHostImpl* GetOuterRenderWidgetHostForKeyboardInput();
234 234
235 // Return the FrameTreeNode for the frame in the outer WebContents (if any)
236 // that contains the inner WebContents.
237 FrameTreeNode* GetOuterDelegateNode();
238
235 RenderFrameProxyHost* GetProxyToParent(); 239 RenderFrameProxyHost* GetProxyToParent();
236 240
237 // Returns the proxy to inner WebContents in the outer WebContents's 241 // Returns the proxy to inner WebContents in the outer WebContents's
238 // SiteInstance. Returns nullptr if this WebContents isn't part of inner/outer 242 // SiteInstance. Returns nullptr if this WebContents isn't part of inner/outer
239 // relationship. 243 // relationship.
240 RenderFrameProxyHost* GetProxyToOuterDelegate(); 244 RenderFrameProxyHost* GetProxyToOuterDelegate();
241 245
242 // Removes the FrameTreeNode in the outer WebContents that represents this 246 // Removes the FrameTreeNode in the outer WebContents that represents this
243 // FrameTreeNode. 247 // FrameTreeNode.
244 // TODO(lazyboy): This does not belong to RenderFrameHostManager, move it to 248 // TODO(lazyboy): This does not belong to RenderFrameHostManager, move it to
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 bool should_reuse_web_ui_; 830 bool should_reuse_web_ui_;
827 831
828 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 832 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
829 833
830 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 834 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
831 }; 835 };
832 836
833 } // namespace content 837 } // namespace content
834 838
835 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 839 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/cross_process_frame_connector.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698