Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: content/shell/test_runner/gamepad_controller.cc

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_)

Powered by Google App Engine
This is Rietveld 408576698