Index: Source/modules/testing/InternalsVibration.cpp |
diff --git a/Source/core/html/canvas/WebGLExtension.cpp b/Source/modules/testing/InternalsVibration.cpp |
similarity index 76% |
copy from Source/core/html/canvas/WebGLExtension.cpp |
copy to Source/modules/testing/InternalsVibration.cpp |
index 9d3c9413c61d27f574bdd43cb3e042677d2c4bdb..23e939efe5f242f6d2892b4de8c1f7b848b69e4c 100644 |
--- a/Source/core/html/canvas/WebGLExtension.cpp |
+++ b/Source/modules/testing/InternalsVibration.cpp |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -24,18 +24,18 @@ |
*/ |
#include "config.h" |
+#include "InternalsVibration.h" |
-#include "core/html/canvas/WebGLExtension.h" |
+#include "core/dom/Document.h" |
+#include "core/testing/Internals.h" |
+#include "modules/vibration/NavigatorVibration.h" |
namespace WebCore { |
-WebGLExtension::WebGLExtension(WebGLRenderingContext* context) |
- : m_context(context) |
-{ |
-} |
- |
-WebGLExtension::~WebGLExtension() |
+bool InternalsVibration::isVibrating(Internals* internals, Document* document) |
{ |
+ ASSERT(internals && document && document->page()); |
+ return NavigatorVibration::from(document->page())->isVibrating(); |
} |
} // namespace WebCore |