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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 339076: The newly added AboutChromeFrame test for IE full tab mode was failing on the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_frame_test_utils.cc
===================================================================
--- chrome_frame/test/chrome_frame_test_utils.cc (revision 30520)
+++ chrome_frame/test/chrome_frame_test_utils.cc (working copy)
@@ -212,16 +212,17 @@
return true;
}
-void SendVirtualKey(int16 key) {
+void SendVirtualKey(int16 key, bool extended) {
INPUT input = { INPUT_KEYBOARD };
input.ki.wVk = key;
+ input.ki.dwFlags = extended ? KEYEVENTF_EXTENDEDKEY : 0;
SendInput(1, &input, sizeof(input));
- input.ki.dwFlags = KEYEVENTF_KEYUP;
+ input.ki.dwFlags = (extended ? KEYEVENTF_EXTENDEDKEY : 0) | KEYEVENTF_KEYUP;
SendInput(1, &input, sizeof(input));
}
void SendChar(char c) {
- SendVirtualKey(VkKeyScanA(c));
+ SendVirtualKey(VkKeyScanA(c), false);
}
void SendString(const char* s) {
@@ -441,8 +442,8 @@
void SelectAboutChromeFrame() {
// Send a key up message to enable the About chrome frame option to be
// selected followed by a return to select it.
- chrome_frame_test::SendVirtualKey(VK_UP);
- chrome_frame_test::SendVirtualKey(VK_RETURN);
+ SendVirtualKey(VK_UP, true);
+ SendVirtualKey(VK_RETURN, false);
}
BOOL CALLBACK FindChromeRendererWindowProc(
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.h ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698