OLD | NEW |
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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 } | 944 } |
945 | 945 |
946 //------------------------------------------------------------------------------ | 946 //------------------------------------------------------------------------------ |
947 | 947 |
948 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( | 948 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( |
949 const WebKit::WebString& host, | 949 const WebKit::WebString& host, |
950 const WebKit::WebString& languages) { | 950 const WebKit::WebString& languages) { |
951 return net::IDNToUnicode(host.utf8(), languages.utf8()); | 951 return net::IDNToUnicode(host.utf8(), languages.utf8()); |
952 } | 952 } |
953 | 953 |
| 954 //------------------------------------------------------------------------------ |
| 955 |
| 956 void RendererWebKitPlatformSupportImpl::vibrate(unsigned int milliseconds) { |
| 957 RenderThread::Get()->Send(new ViewHostMsg_Vibrate(milliseconds)); |
| 958 } |
| 959 |
| 960 void RendererWebKitPlatformSupportImpl::cancelVibration() { |
| 961 RenderThread::Get()->Send(new ViewHostMsg_CancelVibration()); |
| 962 } |
| 963 |
954 } // namespace content | 964 } // namespace content |
OLD | NEW |