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

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

Issue 18478003: Vibration cannot be canceled during pattern vibration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adoptation for recently changing of NavigatorVibration. Created 7 years, 5 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 15eb7ae86778849b9f6494aeff7b9c13712f97c3..62a89fbb3910fa4d53d4b4e207cf66a334508332 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -115,6 +115,11 @@
#include "modules/speech/DOMWindowSpeechSynthesis.h"
#include "modules/speech/SpeechSynthesis.h"
+// FIXME : Need to be removed this include statement
+// after implementing Partial interface for Internals's IDL.
+// This will be handled on the 261467 issue.
+#include "modules/vibration/NavigatorVibration.h"
abarth-chromium 2013/07/18 07:39:07 This is a bad dependency. Rather than adding tech
+
namespace WebCore {
static MockPagePopupDriver* s_pagePopupDriver = 0;
@@ -2005,4 +2010,11 @@ bool Internals::isSelectPopupVisible(Node* node)
return menuList->popupIsVisible();
}
+bool Internals::isVibrating(Document* document)
+{
+ ASSERT(document && document->page());
+
+ return NavigatorVibration::from(document->page())->isVibrating();
+}
+
}
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698