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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Fixed some compile errors Created 4 years 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_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
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 ScreenOrientationProvider; 49 class ScreenOrientationProvider;
45 class WebContents; 50 class WebContents;
46 struct AXEventNotificationDetails; 51 struct AXEventNotificationDetails;
47 struct AXLocationChangeNotificationDetails; 52 struct AXLocationChangeNotificationDetails;
48 struct ContextMenuParams; 53 struct ContextMenuParams;
49 struct FileChooserParams; 54 struct FileChooserParams;
50 55
51 // An interface implemented by an object interested in knowing about the state 56 // An interface implemented by an object interested in knowing about the state
52 // of the RenderFrameHost. 57 // of the RenderFrameHost.
53 class CONTENT_EXPORT RenderFrameHostDelegate { 58 class CONTENT_EXPORT RenderFrameHostDelegate {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 210
206 // 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
207 // possibly changing focus in distinct but related inner/outer WebContents. 212 // possibly changing focus in distinct but related inner/outer WebContents.
208 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} 213 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {}
209 214
210 // 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
211 // applies, returns null. 216 // applies, returns null.
212 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 217 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
213 const GURL& url); 218 const GURL& url);
214 219
220 // Called by |frame| to notify that it has received an update on focused
221 // element. |bounds_in_frame_widget| is the rectangle containing the element
ncarter (slow) 2016/12/16 19:17:20 |bounds_in_frame_widget| or |bounds_in_root_view|?
EhsanK 2016/12/20 16:39:10 Sorry. |boudns_in_root_view|. Thanks! Done.
222 // focused and is with respect to frame's RenderWidgetHost's coordinate space.
223 virtual void OnFocusedElementChangedInFrame(
224 RenderFrameHostImpl* frame,
225 const gfx::Rect& bounds_in_root_view) {}
226
215 protected: 227 protected:
216 virtual ~RenderFrameHostDelegate() {} 228 virtual ~RenderFrameHostDelegate() {}
217 }; 229 };
218 230
219 } // namespace content 231 } // namespace content
220 232
221 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 233 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698