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

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

Issue 2674353003: Enable WebViewAccessiblityTest for OOPIF webview. (Closed)
Patch Set: Address dmazzoni comments. Created 3 years, 10 months 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // special case for <webview> guests, but this logic should eventually be 217 // special case for <webview> guests, but this logic should eventually be
218 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview> 218 // moved down into RenderFrameProxyHost::RouteMessageEvent when <webview>
219 // refactoring for --site-per-process mode is further along. See 219 // refactoring for --site-per-process mode is further along. See
220 // https://crbug.com/330264. 220 // https://crbug.com/330264.
221 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {} 221 virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {}
222 222
223 // Set the |node| frame as focused in the current FrameTree as well as 223 // Set the |node| frame as focused in the current FrameTree as well as
224 // possibly changing focus in distinct but related inner/outer WebContents. 224 // possibly changing focus in distinct but related inner/outer WebContents.
225 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} 225 virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {}
226 226
227 // Searches the WebContents for a focused frame, potentially in an inner
228 // WebContents. If this WebContents has no focused frame, returns |nullptr|.
229 // If there is no inner WebContents at the focused tree node, returns its
230 // RenderFrameHost. If there is an inner WebContents, search it for focused
231 // frames and inner contents. If an inner WebContents does not have a focused
232 // frame, return the main frame, since the attchment frame in its outer
dmazzoni 2017/02/22 08:46:41 nit: attchment -> attachment. Also, "return the m
avallee 2017/02/22 16:58:48 Done.
233 // WebContents is not live.
234 virtual RenderFrameHost* GetFocusedFrameIncludingInnerWebContents();
235
227 // Creates a WebUI object for a frame navigating to |url|. If no WebUI 236 // Creates a WebUI object for a frame navigating to |url|. If no WebUI
228 // applies, returns null. 237 // applies, returns null.
229 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 238 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
230 const GURL& url); 239 const GURL& url);
231 240
232 // Called by |frame| to notify that it has received an update on focused 241 // Called by |frame| to notify that it has received an update on focused
233 // element. |bounds_in_root_view| is the rectangle containing the element that 242 // element. |bounds_in_root_view| is the rectangle containing the element that
234 // is focused and is with respect to root frame's RenderWidgetHost's 243 // is focused and is with respect to root frame's RenderWidgetHost's
235 // coordinate space. 244 // coordinate space.
236 virtual void OnFocusedElementChangedInFrame( 245 virtual void OnFocusedElementChangedInFrame(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 const gfx::Rect& initial_rect, 284 const gfx::Rect& initial_rect,
276 bool user_gesture) {} 285 bool user_gesture) {}
277 286
278 protected: 287 protected:
279 virtual ~RenderFrameHostDelegate() {} 288 virtual ~RenderFrameHostDelegate() {}
280 }; 289 };
281 290
282 } // namespace content 291 } // namespace content
283 292
284 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 293 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698