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/device_light/DeviceLightDispatcher.h

Issue 2823753002: Remove device light API
Patch Set: Restore DeviceLightEvent to LayoutTests/external/wpt/dom/nodes/Document-createEvent.html 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/DeviceLightDispatcher.h
diff --git a/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.h b/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.h
deleted file mode 100644
index fdf6e7b0fb8463a64e20cb524bee610466f551a1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.h
+++ /dev/null
@@ -1,45 +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 DeviceLightDispatcher_h
-#define DeviceLightDispatcher_h
-
-#include "core/frame/PlatformEventDispatcher.h"
-#include "platform/heap/Handle.h"
-#include "public/platform/WebDeviceLightListener.h"
-
-namespace blink {
-
-// This class listens to device light data and notifies all registered
-// controllers.
-class DeviceLightDispatcher final
- : public GarbageCollectedFinalized<DeviceLightDispatcher>,
- public PlatformEventDispatcher,
- public WebDeviceLightListener {
- USING_GARBAGE_COLLECTED_MIXIN(DeviceLightDispatcher);
-
- public:
- static DeviceLightDispatcher& instance();
- ~DeviceLightDispatcher() override;
-
- double latestDeviceLightData() const;
-
- // Inherited from WebDeviceLightListener.
- void didChangeDeviceLight(double) override;
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- DeviceLightDispatcher();
-
- // Inherited from PlatformEventDispatcher.
- void startListening() override;
- void stopListening() override;
-
- double m_lastDeviceLightData;
-};
-
-} // namespace blink
-
-#endif // DeviceLightDispatcher_h

Powered by Google App Engine
This is Rietveld 408576698