Chromium Code Reviews| 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 4dce33e2df01ceebc72aab4bc34a01265c7fc7fb..985658a8d84665133a5655896c80b6c38206172f 100644 |
| --- a/content/public/test/browser_test_utils.h |
| +++ b/content/public/test/browser_test_utils.h |
| @@ -79,8 +79,21 @@ void SimulateMouseEvent(WebContents* web_contents, |
| const gfx::Point& point); |
| // Sends a key press asynchronously. |
| +// The native code of the key event will be set to InvalidNativeKeycode(). |
| void SimulateKeyPress(WebContents* web_contents, |
| - ui::KeyboardCode key, |
| + ui::KeyboardCode keyCode, |
|
tommi (sloooow) - chröme
2013/09/06 06:36:38
key_code
weitao
2013/09/06 17:59:35
Done.
|
| + bool control, |
| + bool shift, |
| + bool alt, |
| + bool command); |
| + |
| +// Sends a key press asynchronously. |
| +// |code| specifies the UIEvents (aka: DOM4Events) value of the key: |
| +// https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm |
| +// The native code of the key event will be set based on |code|. |
| +void SimulateKeyPressWithCode(WebContents* web_contents, |
| + ui::KeyboardCode keyCode, |
|
tommi (sloooow) - chröme
2013/09/06 06:36:38
key_code.
also fix indent please.
weitao
2013/09/06 17:59:35
Done.
|
| + const char* code, |
| bool control, |
| bool shift, |
| bool alt, |