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

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

Issue 112023010: Make EventHandler::ActiveIntervalTimer mockable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 822bdd8b2139c24e21bcff53e0b8d9e9df668ff3..c1bee9b4a8ddab2b4518d7521cfcd85efe946880 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1234,6 +1234,29 @@ PassRefPtr<ClientRect> Internals::bestZoomableAreaForTouchPoint(long x, long y,
return 0;
}
+void Internals::suspendActiveIntervalTimer(Document* document, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().suspendActiveIntervalTimer();
+}
+
+void Internals::resumeActiveIntervalTimer(Document* document, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().resumeActiveIntervalTimer();
+}
+
+void Internals::fireActiveIntervalTimer(Document* document, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().fireActiveIntervalTimer();
+}
int Internals::lastSpellCheckRequestSequence(Document* document, ExceptionState& exceptionState)
{

Powered by Google App Engine
This is Rietveld 408576698