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

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

Issue 2668173003: [Sensors] Remove SensorReading interfaces (Closed)
Patch Set: updated global-interface-listing.html Created 3 years, 11 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/sensor/SensorReading.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/SensorReading.cpp b/third_party/WebKit/Source/modules/sensor/SensorReading.cpp
deleted file mode 100644
index 7717e58d66b3100d9d3aa9791074d811ae4f6cf2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/sensor/SensorReading.cpp
+++ /dev/null
@@ -1,30 +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/SensorReading.h"
-
-#include "core/dom/ExecutionContext.h"
-#include "core/frame/LocalDOMWindow.h"
-#include "core/timing/DOMWindowPerformance.h"
-#include "core/timing/Performance.h"
-
-namespace blink {
-
-SensorReading::SensorReading(const device::SensorReading& data)
- : m_data(data) {}
-
-SensorReading::~SensorReading() = default;
-
-DOMHighResTimeStamp SensorReading::timeStamp(ScriptState* scriptState) const {
- LocalDOMWindow* window = scriptState->domWindow();
- if (!window)
- return 0.0;
-
- Performance* performance = DOMWindowPerformance::performance(*window);
- DCHECK(performance);
-
- return performance->monotonicTimeToDOMHighResTimeStamp(data().timestamp);
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/SensorReading.h ('k') | third_party/WebKit/Source/modules/sensor/SensorReading.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698