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

Unified Diff: third_party/WebKit/Source/modules/gamepad/GamepadButton.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/Source/modules/gamepad/GamepadButton.h
diff --git a/third_party/WebKit/Source/modules/gamepad/GamepadButton.h b/third_party/WebKit/Source/modules/gamepad/GamepadButton.h
index 1b2ca71736b80e75a6b426b46bbc8fbffab977ff..5d875e1d6fa34ca42bc905f709545a32eb3b397b 100644
--- a/third_party/WebKit/Source/modules/gamepad/GamepadButton.h
+++ b/third_party/WebKit/Source/modules/gamepad/GamepadButton.h
@@ -22,12 +22,16 @@ public:
bool pressed() const { return m_pressed; }
void setPressed(bool val) { m_pressed = val; }
+ bool touched() const { return m_touched; }
+ void setTouched(bool val) { m_touched = val; }
+
DEFINE_INLINE_TRACE() { }
private:
GamepadButton();
double m_value;
bool m_pressed;
+ bool m_touched;
};
typedef HeapVector<Member<GamepadButton>> GamepadButtonVector;
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/Gamepad.cpp ('k') | third_party/WebKit/Source/modules/gamepad/GamepadButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698