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

Unified Diff: Source/modules/gamepad/GamepadButton.h

Issue 367113005: Remove destructors from ScriptWrappable objects in modules/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 5 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 | « Source/modules/device_orientation/DeviceRotationRate.h ('k') | Source/modules/gamepad/GamepadButton.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadButton.h
diff --git a/Source/modules/gamepad/GamepadButton.h b/Source/modules/gamepad/GamepadButton.h
index 845c4a300ada9c9f6e2a0c88e31abe4f495e55af..b2e03d64da3c09db5c7f414a9cbd6b2ae497c7a6 100644
--- a/Source/modules/gamepad/GamepadButton.h
+++ b/Source/modules/gamepad/GamepadButton.h
@@ -11,10 +11,9 @@
namespace blink {
-class GamepadButton FINAL : public GarbageCollectedFinalized<GamepadButton>, public ScriptWrappable {
+class GamepadButton FINAL : public GarbageCollected<GamepadButton>, public ScriptWrappable {
public:
static GamepadButton* create();
- ~GamepadButton();
double value() const { return m_value; }
void setValue(double val) { m_value = val; }
@@ -22,7 +21,7 @@ public:
bool pressed() const { return m_pressed; }
void setPressed(bool val) { m_pressed = val; }
- void trace(Visitor*);
+ void trace(Visitor*) { }
private:
GamepadButton();
« no previous file with comments | « Source/modules/device_orientation/DeviceRotationRate.h ('k') | Source/modules/gamepad/GamepadButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698