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

Unified Diff: device/gamepad/public/cpp/gamepad.cc

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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
« no previous file with comments | « device/gamepad/public/cpp/gamepad.h ('k') | device/gamepad/public/cpp/gamepads.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/public/cpp/gamepad.cc
diff --git a/device/gamepad/public/cpp/gamepad.cc b/device/gamepad/public/cpp/gamepad.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd5bf4ed77c02c7dbe81f70de98b907d74a05d1c
--- /dev/null
+++ b/device/gamepad/public/cpp/gamepad.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "device/gamepad/public/cpp/gamepad.h"
+
+namespace device {
+
+Gamepad::Gamepad()
+ : connected(false),
+ timestamp(0),
+ axes_length(0),
+ buttons_length(0),
+ display_id(0) {
+ id[0] = 0;
+ mapping[0] = 0;
+}
+
+Gamepad::Gamepad(const Gamepad& other) = default;
+
+} // namespace device
« no previous file with comments | « device/gamepad/public/cpp/gamepad.h ('k') | device/gamepad/public/cpp/gamepads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698