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

Unified Diff: third_party/WebKit/Source/modules/device_light/DeviceLightEvent.h

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch 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/device_light/DeviceLightEvent.h
diff --git a/third_party/WebKit/Source/modules/device_light/DeviceLightEvent.h b/third_party/WebKit/Source/modules/device_light/DeviceLightEvent.h
deleted file mode 100644
index 5c969b118ac7ed826a8edf553913008b019d7642..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/device_light/DeviceLightEvent.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef DeviceLightEvent_h
-#define DeviceLightEvent_h
-
-#include "modules/EventModules.h"
-#include "modules/device_light/DeviceLightEventInit.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class DeviceLightEvent final : public Event {
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- ~DeviceLightEvent() override;
-
- static DeviceLightEvent* Create(const AtomicString& event_type,
- double value) {
- return new DeviceLightEvent(event_type, value);
- }
- static DeviceLightEvent* Create(const AtomicString& event_type,
- const DeviceLightEventInit& initializer) {
- return new DeviceLightEvent(event_type, initializer);
- }
-
- double value() const { return value_; }
-
- const AtomicString& InterfaceName() const override;
-
- private:
- DeviceLightEvent(const AtomicString& event_type, double value);
- DeviceLightEvent(const AtomicString& event_type,
- const DeviceLightEventInit& initializer);
-
- double value_;
-};
-
-DEFINE_TYPE_CASTS(DeviceLightEvent,
- Event,
- event,
- event->InterfaceName() == EventNames::DeviceLightEvent,
- event.InterfaceName() == EventNames::DeviceLightEvent);
-
-} // namespace blink
-
-#endif // DeviceLightEvent_h

Powered by Google App Engine
This is Rietveld 408576698