| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace IPC { | 30 namespace IPC { |
| 31 class Message; | 31 class Message; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace device { | 34 namespace device { |
| 35 class GeolocationServiceContext; | 35 class GeolocationServiceContext; |
| 36 class WakeLockServiceContext; | 36 class WakeLockServiceContext; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace gfx { |
| 40 class Rect; |
| 41 } |
| 42 |
| 39 namespace content { | 43 namespace content { |
| 40 class FrameTreeNode; | 44 class FrameTreeNode; |
| 41 class InterstitialPage; | 45 class InterstitialPage; |
| 42 class PageState; | 46 class PageState; |
| 43 class RenderFrameHost; | 47 class RenderFrameHost; |
| 48 class RenderFrameHostImpl; |
| 44 class WebContents; | 49 class WebContents; |
| 45 struct AXEventNotificationDetails; | 50 struct AXEventNotificationDetails; |
| 46 struct AXLocationChangeNotificationDetails; | 51 struct AXLocationChangeNotificationDetails; |
| 47 struct ContextMenuParams; | 52 struct ContextMenuParams; |
| 48 struct FileChooserParams; | 53 struct FileChooserParams; |
| 49 | 54 |
| 50 // An interface implemented by an object interested in knowing about the state | 55 // An interface implemented by an object interested in knowing about the state |
| 51 // of the RenderFrameHost. | 56 // of the RenderFrameHost. |
| 52 class CONTENT_EXPORT RenderFrameHostDelegate { | 57 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 53 public: | 58 public: |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 205 |
| 201 // Set the |node| frame as focused in the current FrameTree as well as | 206 // Set the |node| frame as focused in the current FrameTree as well as |
| 202 // possibly changing focus in distinct but related inner/outer WebContents. | 207 // possibly changing focus in distinct but related inner/outer WebContents. |
| 203 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} | 208 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} |
| 204 | 209 |
| 205 // Creates a WebUI object for a frame navigating to |url|. If no WebUI | 210 // Creates a WebUI object for a frame navigating to |url|. If no WebUI |
| 206 // applies, returns null. | 211 // applies, returns null. |
| 207 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 212 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 208 const GURL& url); | 213 const GURL& url); |
| 209 | 214 |
| 215 // Called by |frame| to notify that it has received an update on focused |
| 216 // element. |bounds_in_root_view| is the rectangle containing the element that |
| 217 // is focused and is with respect to root frame's RenderWidgetHost's |
| 218 // coordinate space. |
| 219 virtual void OnFocusedElementChangedInFrame( |
| 220 RenderFrameHostImpl* frame, |
| 221 const gfx::Rect& bounds_in_root_view) {} |
| 222 |
| 210 protected: | 223 protected: |
| 211 virtual ~RenderFrameHostDelegate() {} | 224 virtual ~RenderFrameHostDelegate() {} |
| 212 }; | 225 }; |
| 213 | 226 |
| 214 } // namespace content | 227 } // namespace content |
| 215 | 228 |
| 216 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 229 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |