| OLD | NEW |
| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // special case for <webview> guests, but this logic should eventually be | 224 // special case for <webview> guests, but this logic should eventually be |
| 225 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> | 225 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> |
| 226 // refactoring for --site-per-process mode is further along. See | 226 // refactoring for --site-per-process mode is further along. See |
| 227 // https://crbug.com/330264. | 227 // https://crbug.com/330264. |
| 228 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} | 228 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} |
| 229 | 229 |
| 230 // Set the |node| frame as focused in the current FrameTree as well as | 230 // Set the |node| frame as focused in the current FrameTree as well as |
| 231 // possibly changing focus in distinct but related inner/outer WebContents. | 231 // possibly changing focus in distinct but related inner/outer WebContents. |
| 232 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} | 232 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} |
| 233 | 233 |
| 234 // Set the |node| frame as focused in the current FrameTree as well as |
| 235 // possibly changing focus in distinct but related inner/outer WebContents. |
| 236 virtual void DidChangeOpener(FrameTreeNode* node, FrameTreeNode* opener) {} |
| 237 |
| 234 // Creates a WebUI object for a frame navigating to |url|. If no WebUI | 238 // Creates a WebUI object for a frame navigating to |url|. If no WebUI |
| 235 // applies, returns null. | 239 // applies, returns null. |
| 236 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 240 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 237 const GURL& url); | 241 const GURL& url); |
| 238 | 242 |
| 239 // Called by |frame| to notify that it has received an update on focused | 243 // Called by |frame| to notify that it has received an update on focused |
| 240 // element. |bounds_in_root_view| is the rectangle containing the element that | 244 // element. |bounds_in_root_view| is the rectangle containing the element that |
| 241 // is focused and is with respect to root frame's RenderWidgetHost's | 245 // is focused and is with respect to root frame's RenderWidgetHost's |
| 242 // coordinate space. | 246 // coordinate space. |
| 243 virtual void OnFocusedElementChangedInFrame( | 247 virtual void OnFocusedElementChangedInFrame( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 GetJavaRenderFrameHostDelegate(); | 308 GetJavaRenderFrameHostDelegate(); |
| 305 #endif | 309 #endif |
| 306 | 310 |
| 307 protected: | 311 protected: |
| 308 virtual ~RenderFrameHostDelegate() {} | 312 virtual ~RenderFrameHostDelegate() {} |
| 309 }; | 313 }; |
| 310 | 314 |
| 311 } // namespace content | 315 } // namespace content |
| 312 | 316 |
| 313 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 317 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |