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

Unified Diff: content/test/layouttest_support.cc

Issue 12317133: [content shell] don't require a user action for focus/blur events during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 10 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 | « content/shell/shell_render_process_observer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index a0d77b6ecbd0443d02b995e263b07aeb92ec65d2..7583c97fd0ee9052201fcffdedf3249e37b93ae5 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/lazy_instance.h"
#include "content/renderer/devtools/devtools_client.h"
+#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
#include "content/renderer/renderer_webapplicationcachehost_impl.h"
#include "content/renderer/renderer_webkitplatformsupport_impl.h"
@@ -61,4 +62,8 @@ int GetLocalSessionHistoryLength(RenderView* render_view) {
->GetLocalSessionHistoryLengthForTesting();
}
+void DoNotRequireUserGestureForFocusChanges() {
+ RenderThreadImpl::current()->set_require_user_gesture_for_focus(false);
+}
+
} // namespace content
« no previous file with comments | « content/shell/shell_render_process_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698