OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "device/vr/android/gvr/gvr_gamepad_data_fetcher.h" | 5 #include "device/vr/android/gvr/gvr_gamepad_data_fetcher.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
8 | 9 |
9 #include "device/vr/android/gvr/gvr_delegate.h" | 10 #include "device/vr/android/gvr/gvr_delegate.h" |
10 #include "third_party/WebKit/public/platform/WebGamepads.h" | 11 #include "third_party/WebKit/public/platform/WebGamepads.h" |
11 | 12 |
12 namespace device { | 13 namespace device { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 void CopyToWebUString(blink::WebUChar* dest, | 17 void CopyToWebUString(blink::WebUChar* dest, |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return; | 144 return; |
144 | 145 |
145 if (paused) { | 146 if (paused) { |
146 controller_api_->Pause(); | 147 controller_api_->Pause(); |
147 } else { | 148 } else { |
148 controller_api_->Resume(); | 149 controller_api_->Resume(); |
149 } | 150 } |
150 } | 151 } |
151 | 152 |
152 } // namespace device | 153 } // namespace device |
OLD | NEW |