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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1180503002: Force a GuestView's embedder to be focused on TouchStart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Release observer on destruction. Make webview focused (for Windows). Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index 51cabcfc8d37cd08ee762370b3e8fcc48f95b3d7..7de4fd7fcd1c14eeab59fc51e8498223d1a1ed6d 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -116,6 +116,9 @@ void SimulateMouseEvent(WebContents* web_contents,
// Taps the screen at |point|.
void SimulateTapAt(WebContents* web_contents, const gfx::Point& point);
+// Generates a TouchStart at |point|.
+void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point);
+
// Taps the screen with modifires at |point|.
void SimulateTapWithModifiersAt(WebContents* web_contents,
unsigned Modifiers,
@@ -401,6 +404,9 @@ class WebContentsAddedObserver {
DISALLOW_COPY_AND_ASSIGN(WebContentsAddedObserver);
};
+// Request a new frame be drawn, returns false if request fails.
+bool RequestFrame(WebContents* web_contents);
+
// Watches compositor frame changes, blocking until a frame has been
// composited. This class is intended to be run on the main thread; to
// synchronize the main thread against the impl thread.
@@ -408,6 +414,9 @@ class FrameWatcher : public BrowserMessageFilter {
public:
FrameWatcher();
+ // Listen for new frames from the |web_contents| renderer process.
+ void AttachTo(WebContents* web_contents);
+
// Wait for |frames_to_wait| swap mesages from the compositor.
void WaitFrames(int frames_to_wait);
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698