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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use 'unsigned int' everywhere. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 } 914 }
915 915
916 //------------------------------------------------------------------------------ 916 //------------------------------------------------------------------------------
917 917
918 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( 918 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode(
919 const WebKit::WebString& host, 919 const WebKit::WebString& host,
920 const WebKit::WebString& languages) { 920 const WebKit::WebString& languages) {
921 return net::IDNToUnicode(host.utf8(), languages.utf8()); 921 return net::IDNToUnicode(host.utf8(), languages.utf8());
922 } 922 }
923 923
924 //------------------------------------------------------------------------------
925
926 void RendererWebKitPlatformSupportImpl::vibrate(unsigned int milliseconds) {
927 RenderThread::Get()->Send(new ViewHostMsg_Vibrate(milliseconds));
928 }
929
930 void RendererWebKitPlatformSupportImpl::cancelVibration() {
931 RenderThread::Get()->Send(new ViewHostMsg_CancelVibration());
932 }
933
924 } // namespace content 934 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698