Lines Matching defs:web_contents

19 #include "content/browser/web_contents/web_contents_view.h"
29 #include "content/public/browser/web_contents.h"
61 Source<WebContents>(web_contents()));
154 void InjectRawKeyEvent(WebContents* web_contents,
161 web_contents->GetRenderViewHost()->ForwardKeyboardEvent(event);
215 void WaitForLoadStop(WebContents* web_contents) {
218 if (web_contents->IsLoading()) {
221 Source<NavigationController>(&web_contents->GetController()));
226 void CrashTab(WebContents* web_contents) {
227 RenderProcessHost* rph = web_contents->GetRenderProcessHost();
241 void WaitForResizeComplete(WebContents* web_contents) {
242 aura::Window* content = web_contents->GetContentNativeView();
250 RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
260 void SimulateMouseClick(WebContents* web_contents,
263 int x = web_contents->GetContainerBounds().width() / 2;
264 int y = web_contents->GetContainerBounds().height() / 2;
265 SimulateMouseClickAt(web_contents, modifiers, button, gfx::Point(x, y));
268 void SimulateMouseClickAt(WebContents* web_contents,
279 gfx::Rect offset = web_contents->GetContainerBounds();
283 web_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
285 web_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
288 void SimulateMouseEvent(WebContents* web_contents,
295 web_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
298 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) {
304 RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
308 void SimulateKeyPress(WebContents* web_contents,
315 web_contents, key_code, NULL, control, shift, alt, command);
318 void SimulateKeyPressWithCode(WebContents* web_contents,
333 InjectRawKeyEvent(web_contents,
342 InjectRawKeyEvent(web_contents,
351 InjectRawKeyEvent(web_contents,
360 InjectRawKeyEvent(web_contents,
368 web_contents,
375 web_contents,
382 web_contents,
391 InjectRawKeyEvent(web_contents,
400 InjectRawKeyEvent(web_contents,
409 InjectRawKeyEvent(web_contents,
418 InjectRawKeyEvent(web_contents,
430 ToRenderFrameHost::ToRenderFrameHost(WebContents* web_contents)
431 : render_frame_host_(web_contents->GetMainFrame()) {
499 WebContents* web_contents,
502 web_contents->ForEachFrame(
520 bool ExecuteWebUIResourceTest(WebContents* web_contents,
536 if (!ExecuteScript(web_contents, script))
540 if (!ExecuteScript(web_contents, "runTests()"))
596 TitleWatcher::TitleWatcher(WebContents* web_contents,
598 : WebContentsObserver(web_contents),
600 EXPECT_TRUE(web_contents != NULL);
633 web_contents()->GetTitle());
642 WebContents* web_contents)
643 : WebContentsObserver(web_contents),
645 EXPECT_TRUE(web_contents != NULL);
668 WebContents* web_contents, WatchType type)
669 : render_process_host_(web_contents->GetRenderProcessHost()),