| Index: Source/modules/devicelight/DeviceLightController.h
|
| diff --git a/Source/modules/device_orientation/DeviceMotionController.h b/Source/modules/devicelight/DeviceLightController.h
|
| similarity index 79%
|
| copy from Source/modules/device_orientation/DeviceMotionController.h
|
| copy to Source/modules/devicelight/DeviceLightController.h
|
| index 10915c22bbb0b221dde9f4586147a8d031807927..eafde096f617c5dce1eaef83d82426137ea25a7f 100644
|
| --- a/Source/modules/device_orientation/DeviceMotionController.h
|
| +++ b/Source/modules/devicelight/DeviceLightController.h
|
| @@ -1,6 +1,5 @@
|
| /*
|
| - * Copyright 2010 Apple Inc. All rights reserved.
|
| - * Copyright (C) 2012 Samsung Electronics. All rights reserved.
|
| + * Copyright (C) 2014 Intel Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions
|
| @@ -24,31 +23,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DeviceMotionController_h
|
| -#define DeviceMotionController_h
|
| +#ifndef DeviceLightController_h
|
| +#define DeviceLightController_h
|
|
|
| #include "core/dom/DocumentSupplementable.h"
|
| #include "core/events/Event.h"
|
| #include "core/frame/DOMWindowLifecycleObserver.h"
|
| #include "modules/device_orientation/DeviceSensorEventController.h"
|
| +#include "modules/devicelight/DeviceLightEvent.h"
|
|
|
| namespace WebCore {
|
|
|
| -class DeviceMotionData;
|
| class DOMWindow;
|
|
|
| -class DeviceMotionController FINAL : public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
|
| +class DeviceLightController FINAL : public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
|
|
|
| public:
|
| - virtual ~DeviceMotionController();
|
| + virtual ~DeviceLightController();
|
|
|
| static const char* supplementName();
|
| - static DeviceMotionController& from(Document&);
|
| + static DeviceLightController& from(Document&);
|
|
|
| - void didChangeDeviceMotion(DeviceMotionData*);
|
| + void didChangeDeviceLight(double);
|
|
|
| private:
|
| - explicit DeviceMotionController(Document&);
|
| + explicit DeviceLightController(Document&);
|
| virtual void registerWithDispatcher() OVERRIDE;
|
| virtual void unregisterWithDispatcher() OVERRIDE;
|
|
|
| @@ -64,4 +63,4 @@ private:
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // DeviceMotionController_h
|
| +#endif // DeviceLightController_h
|
|
|