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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/modules/serviceworkers/ServiceWorkerError.cpp ('k') | Source/modules/webaudio/AsyncAudioDecoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/vibration/NavigatorVibration.cpp
diff --git a/Source/modules/vibration/NavigatorVibration.cpp b/Source/modules/vibration/NavigatorVibration.cpp
index 65815153e9ef50b64c30af1e319a9ef16e081690..de601e67e2eb0990e369044b9dbaf91335074cdc 100644
--- a/Source/modules/vibration/NavigatorVibration.cpp
+++ b/Source/modules/vibration/NavigatorVibration.cpp
@@ -59,8 +59,8 @@ bool NavigatorVibration::vibrate(const VibrationPattern& pattern)
// If any pattern entry is too long then truncate it.
for (size_t i = 0; i < length; ++i) {
- if (sanitized[i] > WebKit::kVibrationDurationMax)
- sanitized[i] = WebKit::kVibrationDurationMax;
+ if (sanitized[i] > blink::kVibrationDurationMax)
+ sanitized[i] = blink::kVibrationDurationMax;
}
// If the last item in the pattern is a pause then discard it.
@@ -93,7 +93,7 @@ void NavigatorVibration::cancelVibration()
{
m_pattern.clear();
if (m_isVibrating) {
- WebKit::Platform::current()->cancelVibration();
+ blink::Platform::current()->cancelVibration();
m_isVibrating = false;
m_timerStop.stop();
}
@@ -105,7 +105,7 @@ void NavigatorVibration::timerStartFired(Timer<NavigatorVibration>* timer)
if (m_pattern.size()) {
m_isVibrating = true;
- WebKit::Platform::current()->vibrate(m_pattern[0]);
+ blink::Platform::current()->vibrate(m_pattern[0]);
m_timerStop.startOneShot(m_pattern[0] / 1000.0);
m_pattern.remove(0);
}
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.cpp ('k') | Source/modules/webaudio/AsyncAudioDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698