diff options
author | mthiesse@chromium.org <mthiesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 03:29:54 +0000 |
---|---|---|
committer | mthiesse@chromium.org <mthiesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 03:29:54 +0000 |
commit | 861f978fd43308fc3f68d6bb775c2a476ed1fd48 (patch) | |
tree | 73675635cf23a807c3ce815bddc43b5992897567 /chrome/test/base/interactive_test_utils.h | |
parent | 0881e23c7a4ae07155f8f252811faf5f755c7c16 (diff) | |
download | chromium_src-861f978fd43308fc3f68d6bb775c2a476ed1fd48.zip chromium_src-861f978fd43308fc3f68d6bb775c2a476ed1fd48.tar.gz chromium_src-861f978fd43308fc3f68d6bb775c2a476ed1fd48.tar.bz2 |
Implemented PointerLock for BrowserPlugin by forwarding PointerLock requests to the embedder, and routing responses back to the guest (essentially).
Added interactive tests for pointerlock that work on Windows and Linux. Manually tested and working on Mac, but mouse movements in test don't seem to work on mac.
BUG=166228
Review URL: https://chromiumcodereview.appspot.com/12047125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/base/interactive_test_utils.h')
-rw-r--r-- | chrome/test/base/interactive_test_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/test/base/interactive_test_utils.h b/chrome/test/base/interactive_test_utils.h index b943e88..bc98d07 100644 --- a/chrome/test/base/interactive_test_utils.h +++ b/chrome/test/base/interactive_test_utils.h @@ -49,6 +49,16 @@ bool SendKeyPressSync(const Browser* browser, bool alt, bool command) WARN_UNUSED_RESULT; +// Sends a key press, blocking until the key press is received or the test times +// out. This uses ui_controls::SendKeyPress, see it for details. Returns true +// if the event was successfully sent and received. +bool SendKeyPressToWindowSync(const gfx::NativeWindow window, + ui::KeyboardCode key, + bool control, + bool shift, + bool alt, + bool command) WARN_UNUSED_RESULT; + // Sends a key press, blocking until both the key press and a notification from // |source| of type |type| are received, or until the test times out. This uses // ui_controls::SendKeyPress, see it for details. Returns true if the event was |