Lines Matching defs:web_contents

12 #include "content/public/browser/web_contents.h"
48 if (!web_contents()) {
53 return web_contents();
57 if (replacement == web_contents())
61 // web_contents() now returns |replacement| from here onwards.
62 SetFocusable(!!web_contents());
67 web_contents() && web_contents()->GetFullscreenRenderWidgetHostView();
76 DCHECK(!web_contents())
91 void WebView::OnWebContentsFocused(content::WebContents* web_contents) {
116 web_contents() && !web_contents()->IsBeingDestroyed()) {
119 web_contents()->GetFullscreenRenderWidgetHostView() :
120 web_contents()->GetRenderWidgetHostView();
145 !web_contents() ||
146 web_contents()->GetCapturerCount() == 0 ||
147 web_contents()->GetPreferredSize().IsEmpty() ||
149 (web_contents()->GetDelegate() &&
150 web_contents()->GetDelegate()->
151 IsFullscreenForTabOrPending(web_contents())))) {
159 const gfx::Size capture_size = web_contents()->GetPreferredSize();
200 return web_contents() && !web_contents()->IsCrashed();
204 if (web_contents())
205 web_contents()->Focus();
209 if (web_contents())
210 web_contents()->FocusThroughTabTraversal(reverse);
218 if (web_contents()) {
220 web_contents()->GetRenderWidgetHostView();
237 void WebView::WebContentsFocused(content::WebContents* web_contents) {
296 if (!GetWidget() || !web_contents())
300 web_contents()->GetFullscreenRenderWidgetHostView()->GetNativeView() :
301 web_contents()->GetNativeView();
323 web_contents()->SetParentNativeViewAccessible(
330 if (web_contents()) {
334 web_contents()->GetNativeView()->Hide();
339 web_contents()->SetParentNativeViewAccessible(NULL);
347 web_contents() && web_contents()->GetFullscreenRenderWidgetHostView();