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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp

Issue 2472403002: [Sensors] Align sensor reading attribute implementation with the specification (Closed)
Patch Set: Comments from Tim Created 4 years, 1 month 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/sensor/SensorReadingEvent.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp b/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
deleted file mode 100644
index f5f64aaa14725c9d0383b5890edd3e4a9962bc85..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 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.
-
-#include "modules/sensor/SensorReadingEvent.h"
-
-namespace blink {
-
-SensorReadingEvent::~SensorReadingEvent() = default;
-
-SensorReadingEvent::SensorReadingEvent(const AtomicString& eventType,
- SensorReading* reading)
- : Event(eventType, false, false), // Does not bubble and is not cancelable.
- m_reading(reading) {
- DCHECK(m_reading);
-}
-
-SensorReadingEvent::SensorReadingEvent(
- const AtomicString& eventType,
- const SensorReadingEventInit& initializer)
- : SensorReadingEvent(eventType, initializer.reading()) {}
-
-const AtomicString& SensorReadingEvent::interfaceName() const {
- return EventNames::SensorReadingEvent;
-}
-
-DEFINE_TRACE(SensorReadingEvent) {
- Event::trace(visitor);
- visitor->trace(m_reading);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698