blob: 0d2213dc7b1736b42198e217d34a6ab785ee0019 [file] [log] [blame]
// 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 DeviceLightController_h
#define DeviceLightController_h
#include "core/dom/DocumentSupplementable.h"
#include "core/frame/DeviceSingleWindowEventController.h"
namespace blink {
class Event;
class DeviceLightController final : public DeviceSingleWindowEventController, public DocumentSupplement {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController);
public:
virtual ~DeviceLightController();
static const char* supplementName();
static DeviceLightController& from(Document&);
virtual void trace(Visitor*) override;
private:
explicit DeviceLightController(Document&);
// Inherited from DeviceEventControllerBase.
virtual void registerWithDispatcher() override;
virtual void unregisterWithDispatcher() override;
virtual bool hasLastData() override;
// Inherited from DeviceSingleWindowEventController.
virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const override;
virtual const AtomicString& eventTypeName() const override;
virtual bool isNullEvent(Event*) const override;
};
} // namespace blink
#endif // DeviceLightController_h