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 "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 | 836 |
837 // Logging | 837 // Logging |
838 void EnableWebCoreLogChannels(const std::string& channels) { | 838 void EnableWebCoreLogChannels(const std::string& channels) { |
839 webkit_glue::EnableWebCoreLogChannels(channels); | 839 webkit_glue::EnableWebCoreLogChannels(channels); |
840 } | 840 } |
841 | 841 |
842 void SetGamepadData(const WebKit::WebGamepads& pads) { | 842 void SetGamepadData(const WebKit::WebGamepads& pads) { |
843 test_environment->webkit_platform_support()->setGamepadData(pads); | 843 test_environment->webkit_platform_support()->setGamepadData(pads); |
844 } | 844 } |
845 | 845 |
| 846 void SetDeviceMotionListener(WebKit::WebDeviceMotionListener* listener) { |
| 847 test_environment->webkit_platform_support() |
| 848 ->setDeviceMotionListener(listener); |
| 849 } |
| 850 |
846 } // namespace webkit_support | 851 } // namespace webkit_support |
OLD | NEW |