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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 shared_offscreen_context_); | 896 shared_offscreen_context_); |
897 } | 897 } |
898 | 898 |
899 //------------------------------------------------------------------------------ | 899 //------------------------------------------------------------------------------ |
900 | 900 |
901 WebKit::WebCompositorSupport* | 901 WebKit::WebCompositorSupport* |
902 RendererWebKitPlatformSupportImpl::compositorSupport() { | 902 RendererWebKitPlatformSupportImpl::compositorSupport() { |
903 return &compositor_support_; | 903 return &compositor_support_; |
904 } | 904 } |
905 | 905 |
| 906 //------------------------------------------------------------------------------ |
| 907 |
| 908 void RendererWebKitPlatformSupportImpl::vibrate(unsigned time) { |
| 909 RenderThread::Get()->Send(new ViewHostMsg_Vibrate(time)); |
| 910 } |
| 911 |
| 912 void RendererWebKitPlatformSupportImpl::cancelVibration() { |
| 913 RenderThread::Get()->Send(new ViewHostMsg_CancelVibration()); |
| 914 } |
| 915 |
906 } // namespace content | 916 } // namespace content |
OLD | NEW |