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

Unified Diff: third_party/WebKit/public/platform/WebGamepad.h

Issue 2150173002: Added Touched attribute to GamepadButton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually remove unnecessary test. Not sure what happened last time. Created 4 years, 3 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/public/platform/WebGamepad.h
diff --git a/third_party/WebKit/public/platform/WebGamepad.h b/third_party/WebKit/public/platform/WebGamepad.h
index e6bd9dc3b4a52dc06200e1a95203c1a8c7a60ecf..74188b4d380a11ef22461ba69cf415b9ec255ae0 100644
--- a/third_party/WebKit/public/platform/WebGamepad.h
+++ b/third_party/WebKit/public/platform/WebGamepad.h
@@ -34,15 +34,18 @@ class WebGamepadButton {
public:
WebGamepadButton()
: pressed(false)
+ , touched(false)
, value(0.)
{
}
- WebGamepadButton(bool pressed, double value)
+ WebGamepadButton(bool pressed, bool touched, double value)
: pressed(pressed)
+ , touched(touched)
, value(value)
{
}
bool pressed;
+ bool touched;
double value;
};
@@ -92,7 +95,7 @@ public:
WebUChar mapping[mappingLengthCap];
};
-static_assert(sizeof(WebGamepad) == 721, "WebGamepad has wrong size");
+static_assert(sizeof(WebGamepad) == 753, "WebGamepad has wrong size");
#pragma pack(pop)
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/GamepadButton.idl ('k') | third_party/WebKit/public/platform/WebGamepads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698