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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2451143003: <webview>: Correctly shift focus between WebContents. (Closed)
Patch Set: Fix creis comments. Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 virtual RenderViewHostDelegateView* GetDelegateView(); 212 virtual RenderViewHostDelegateView* GetDelegateView();
213 213
214 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is 214 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is
215 // not intended for use with other types of fullscreen, such as HTML 215 // not intended for use with other types of fullscreen, such as HTML
216 // fullscreen, and will return nullptr for those cases. 216 // fullscreen, and will return nullptr for those cases.
217 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; 217 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const;
218 218
219 // Allow the delegate to handle the cursor update. Returns true if handled. 219 // Allow the delegate to handle the cursor update. Returns true if handled.
220 virtual bool OnUpdateDragCursor(); 220 virtual bool OnUpdateDragCursor();
221 221
222 // Inner WebContents Helpers -------------------------------------------------
223 //
224 // These functions are helpers in managing a hierharchy of WebContents
225 // involved in rendering inner WebContents.
226
227 // Get the RenderWidgetHost that should receive page level focus events. This
228 // will be the widget that is rendering the main frame of the currently
229 // focused WebContents.
230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus();
231
232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only
233 // one widget should be focused and active. This ensures that
234 // |render_widget_host| is focused and that its owning WebContents is also
235 // the focused WebContents.
236 virtual void FocusOwningWebContents(
237 RenderWidgetHostImpl* render_widget_host) {}
238
222 protected: 239 protected:
223 virtual ~RenderWidgetHostDelegate() {} 240 virtual ~RenderWidgetHostDelegate() {}
224 }; 241 };
225 242
226 } // namespace content 243 } // namespace content
227 244
228 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 245 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698