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

Unified Diff: chrome_frame/test/ie_event_sink.cc

Issue 15944007: Fix cross-window focus in Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only open popups once Created 7 years, 7 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/data/window_open.html ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/ie_event_sink.cc
diff --git a/chrome_frame/test/ie_event_sink.cc b/chrome_frame/test/ie_event_sink.cc
index 6caa4cdfff81e9ddf425c104e643e1a0110c6cd5..4ba7126e48e80b28d1de455a2ef144ae78044d5e 100644
--- a/chrome_frame/test/ie_event_sink.cc
+++ b/chrome_frame/test/ie_event_sink.cc
@@ -15,6 +15,7 @@
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/strings/string_piece.h"
+#include "base/test/test_timeouts.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "base/win/scoped_bstr.h"
@@ -317,7 +318,8 @@ void IEEventSink::SetFocusToRenderer() {
void IEEventSink::SendKeys(const char* input_string) {
HWND window = GetRendererWindow();
- const base::TimeDelta kMessageSleep = base::TimeDelta::FromMilliseconds(50);
+ simulate_input::SetKeyboardFocusToWindow(window);
+ const base::TimeDelta kMessageSleep = TestTimeouts::tiny_timeout();
const base::StringPiece codes(input_string);
for (size_t i = 0; i < codes.length(); ++i) {
char character = codes[i];
« no previous file with comments | « chrome_frame/test/data/window_open.html ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698