| 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; |
| 44 class RenderFrameHostImpl; | 48 class RenderFrameHostImpl; |
| 45 class ScreenOrientationProvider; | 49 class ScreenOrientationProvider; |
| 46 class WebContents; | 50 class WebContents; |
| 47 struct AXEventNotificationDetails; | 51 struct AXEventNotificationDetails; |
| 48 struct AXLocationChangeNotificationDetails; | 52 struct AXLocationChangeNotificationDetails; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 210 |
| 207 // Set the |node| frame as focused in the current FrameTree as well as | 211 // Set the |node| frame as focused in the current FrameTree as well as |
| 208 // possibly changing focus in distinct but related inner/outer WebContents. | 212 // possibly changing focus in distinct but related inner/outer WebContents. |
| 209 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} | 213 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} |
| 210 | 214 |
| 211 // Creates a WebUI object for a frame navigating to |url|. If no WebUI | 215 // Creates a WebUI object for a frame navigating to |url|. If no WebUI |
| 212 // applies, returns null. | 216 // applies, returns null. |
| 213 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 217 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 214 const GURL& url); | 218 const GURL& url); |
| 215 | 219 |
| 220 // Called by |frame| to notify that it has received an update on focused |
| 221 // element. |bounds_in_root_view| is the rectangle containing the element that |
| 222 // is focused and is with respect to root frame's RenderWidgetHost's |
| 223 // coordinate space. |
| 224 virtual void OnFocusedElementChangedInFrame( |
| 225 RenderFrameHostImpl* frame, |
| 226 const gfx::Rect& bounds_in_root_view) {} |
| 227 |
| 216 protected: | 228 protected: |
| 217 virtual ~RenderFrameHostDelegate() {} | 229 virtual ~RenderFrameHostDelegate() {} |
| 218 }; | 230 }; |
| 219 | 231 |
| 220 } // namespace content | 232 } // namespace content |
| 221 | 233 |
| 222 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 234 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |