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

Unified Diff: Source/modules/vibration/NavigatorVibration.h

Issue 15724023: Vibration API: use runtime flag, change from client to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review issues: order vibrate method before cancelVibration, etc. Created 7 years, 6 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/modules/vibration/NavigatorVibration.h
diff --git a/Source/modules/vibration/NavigatorVibration.h b/Source/modules/vibration/NavigatorVibration.h
index aef7c3a512ee978d7c96a730e13207769e53c79f..297ad6d57f36595f1d4e225e0b6ddf69f5eccacd 100644
--- a/Source/modules/vibration/NavigatorVibration.h
+++ b/Source/modules/vibration/NavigatorVibration.h
@@ -20,9 +20,6 @@
#ifndef NavigatorVibration_h
#define NavigatorVibration_h
-#if ENABLE(VIBRATION)
-
-#include "core/dom/ExceptionCode.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -34,8 +31,8 @@ class NavigatorVibration {
public:
typedef Vector<unsigned> VibrationPattern;
- static void vibrate(Navigator*, unsigned time, ExceptionCode&);
- static void vibrate(Navigator*, const VibrationPattern&, ExceptionCode&);
+ static void vibrate(Navigator*, unsigned time);
+ static void vibrate(Navigator*, const VibrationPattern&);
private:
NavigatorVibration();
Peter Beverloo 2013/06/11 13:50:12 Do we need the constructor and destructor? They'r
Michael van Ouwerkerk 2013/06/11 14:16:43 Let's just leave a private constructor then.
@@ -44,7 +41,4 @@ private:
} // namespace WebCore
-#endif // ENABLE(VIBRATION)
-
#endif // NavigatorVibration_h
-

Powered by Google App Engine
This is Rietveld 408576698