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

Unified Diff: Source/core/testing/Internals.cpp

Issue 292973007: DevTools: Focus/blur events that are triggered by DevTools get dispatched when page is unfocused (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index a48c5ac62dfd1132fd53c4f591b29f5a5215a523..3c5af8f9059ad114b1be683282f60f0b2a1ffec7 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -105,6 +105,7 @@
#include "core/page/Chrome.h"
#include "core/page/ChromeClient.h"
#include "core/page/EventHandler.h"
+#include "core/page/FocusController.h"
#include "core/page/Page.h"
#include "core/page/PagePopupController.h"
#include "core/page/PrintContext.h"
@@ -2334,4 +2335,9 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
return surroundingText.content();
}
+void Internals::setFocused(bool focused)
+{
+ frame()->page()->focusController().setFocused(focused);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698