webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::DeviceMotionController Class Referencefinal

#include <DeviceMotionController.h>

Inheritance diagram for WebCore::DeviceMotionController:
WebCore::DeviceController WebCore::Supplement< Page > WebCore::Supplement< Page >

Public Member Functions

 DeviceMotionController (DeviceMotionClient *)
 
virtual ~DeviceMotionController ()
 
void didChangeDeviceMotion (DeviceMotionData *)
 
DeviceMotionClientdeviceMotionClient ()
 
bool hasLastData () override
 
RefPtr< EventgetLastEvent () override
 
- Public Member Functions inherited from WebCore::DeviceController
 DeviceController (DeviceClient *)
 
virtual ~DeviceController ()
 
void addDeviceEventListener (DOMWindow *)
 
void removeDeviceEventListener (DOMWindow *)
 
void removeAllDeviceEventListeners (DOMWindow *)
 
void dispatchDeviceEvent (Event &)
 
bool isActive ()
 
DeviceClientclient ()
 
 DeviceController (DeviceClient *)
 
virtual ~DeviceController ()
 
void addDeviceEventListener (DOMWindow *)
 
void removeDeviceEventListener (DOMWindow *)
 
void removeAllDeviceEventListeners (DOMWindow *)
 
void dispatchDeviceEvent (Event &)
 
bool isActive ()
 
DeviceClientclient ()
 
- Public Member Functions inherited from WebCore::Supplement< Page >
virtual ~Supplement ()
 
virtual ~Supplement ()
 
virtual bool isRefCountedWrapper () const
 
virtual bool isRefCountedWrapper () const
 

Static Public Member Functions

static const char * supplementName ()
 
static DeviceMotionControllerfrom (Page *)
 
static bool isActiveAt (Page *)
 
- Static Public Member Functions inherited from WebCore::Supplement< Page >
static void provideTo (Supplementable< Page > *host, const char *key, std::unique_ptr< Supplement< Page >> supplement)
 
static void provideTo (Supplementable< Page > *host, const char *key, std::unique_ptr< Supplement< Page >> supplement)
 
static Supplement< Page > * from (Supplementable< Page > *host, const char *key)
 
static Supplement< Page > * from (Supplementable< Page > *host, const char *key)
 

Additional Inherited Members

- Protected Member Functions inherited from WebCore::DeviceController
void fireDeviceEvent ()
 
void fireDeviceEvent ()
 
- Protected Attributes inherited from WebCore::DeviceController
HashCountedSet< RefPtr< DOMWindow > > m_listeners
 
HashCountedSet< RefPtr< DOMWindow > > m_lastEventListeners
 
DeviceClientm_client
 
Timer m_timer
 

Constructor & Destructor Documentation

◆ DeviceMotionController()

WebCore::DeviceMotionController::DeviceMotionController ( DeviceMotionClient client)
explicit

◆ ~DeviceMotionController()

virtual WebCore::DeviceMotionController::~DeviceMotionController ( )
inlinevirtual

Member Function Documentation

◆ deviceMotionClient()

DeviceMotionClient * WebCore::DeviceMotionController::deviceMotionClient ( )

◆ didChangeDeviceMotion()

void WebCore::DeviceMotionController::didChangeDeviceMotion ( DeviceMotionData deviceMotionData)

◆ from()

DeviceMotionController * WebCore::DeviceMotionController::from ( Page page)
static

◆ getLastEvent()

RefPtr< Event > WebCore::DeviceMotionController::getLastEvent ( )
overridevirtual

Reimplemented from WebCore::DeviceController.

◆ hasLastData()

bool WebCore::DeviceMotionController::hasLastData ( )
overridevirtual

Reimplemented from WebCore::DeviceController.

◆ isActiveAt()

bool WebCore::DeviceMotionController::isActiveAt ( Page page)
static

◆ supplementName()

const char * WebCore::DeviceMotionController::supplementName ( )
static

The documentation for this class was generated from the following files: