| Index: content/shell/test_runner/gamepad_controller.cc
|
| diff --git a/components/test_runner/gamepad_controller.cc b/content/shell/test_runner/gamepad_controller.cc
|
| similarity index 97%
|
| rename from components/test_runner/gamepad_controller.cc
|
| rename to content/shell/test_runner/gamepad_controller.cc
|
| index a30e22182c97eacb363d593fe9f4adce537ad43c..02bc784b0fbce5d46933e34447d17a3c1a18d575 100644
|
| --- a/components/test_runner/gamepad_controller.cc
|
| +++ b/content/shell/test_runner/gamepad_controller.cc
|
| @@ -2,12 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "components/test_runner/gamepad_controller.h"
|
| +#include "content/shell/test_runner/gamepad_controller.h"
|
|
|
| #include <string.h>
|
|
|
| #include "base/macros.h"
|
| -#include "components/test_runner/web_test_delegate.h"
|
| +#include "content/shell/test_runner/web_test_delegate.h"
|
| #include "gin/arguments.h"
|
| #include "gin/handle.h"
|
| #include "gin/object_template_builder.h"
|
| @@ -155,8 +155,7 @@ GamepadController::GamepadController()
|
| Reset();
|
| }
|
|
|
| -GamepadController::~GamepadController() {
|
| -}
|
| +GamepadController::~GamepadController() {}
|
|
|
| void GamepadController::Reset() {
|
| memset(&gamepads_, 0, sizeof(gamepads_));
|
| @@ -181,8 +180,8 @@ void GamepadController::Connect(int index) {
|
| }
|
|
|
| void GamepadController::DispatchConnected(int index) {
|
| - if (index < 0 || index >= static_cast<int>(WebGamepads::itemsLengthCap)
|
| - || !gamepads_.items[index].connected)
|
| + if (index < 0 || index >= static_cast<int>(WebGamepads::itemsLengthCap) ||
|
| + !gamepads_.items[index].connected)
|
| return;
|
| const WebGamepad& pad = gamepads_.items[index];
|
| if (listener_)
|
|
|