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

Unified Diff: third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp

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
Index: third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp b/third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp
index 1be92d524f896f9ba9665a378f7d81f9ac3c4258..f8c211d5b9961c4d39d953bfe754d2fd0abeb2e9 100644
--- a/third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/GamepadPose.cpp
@@ -8,7 +8,7 @@ namespace blink {
namespace {
-DOMFloat32Array* VecToFloat32Array(const WebGamepadVector& vec) {
+DOMFloat32Array* VecToFloat32Array(const device::GamepadVector& vec) {
if (vec.not_null) {
DOMFloat32Array* out = DOMFloat32Array::Create(3);
out->Data()[0] = vec.x;
@@ -19,7 +19,7 @@ DOMFloat32Array* VecToFloat32Array(const WebGamepadVector& vec) {
return nullptr;
}
-DOMFloat32Array* QuatToFloat32Array(const WebGamepadQuaternion& quat) {
+DOMFloat32Array* QuatToFloat32Array(const device::GamepadQuaternion& quat) {
if (quat.not_null) {
DOMFloat32Array* out = DOMFloat32Array::Create(4);
out->Data()[0] = quat.x;
@@ -35,7 +35,7 @@ DOMFloat32Array* QuatToFloat32Array(const WebGamepadQuaternion& quat) {
GamepadPose::GamepadPose() {}
-void GamepadPose::SetPose(const WebGamepadPose& state) {
+void GamepadPose::SetPose(const device::GamepadPose& state) {
if (state.not_null) {
has_orientation_ = state.has_orientation;
has_position_ = state.has_position;
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/GamepadPose.h ('k') | third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698