Event handling for a app.Screensaver
- Source:
Members
-
<private, static, constant> _MOUSE_START :Object
-
Starting mouse position
Type:
- Object
- Source:
Methods
-
<private, static> _close()
-
Close ourselves
- Source:
-
<private, static> _onKey(ev)
-
Event: KeyboardEvent
Parameters:
Name Type Description ev
KeyboardEvent KeyboardEvent
-
<private, static> _onKeyCommand(cmd)
-
Event: Fired when a registered command is activated using a keyboard shortcut.
Parameters:
Name Type Description cmd
string keyboard command
-
<private, static> _onMessage(request [, sender] [, response]) → {boolean}
-
Event: Fired when a message is sent from either an extension
(by runtime.sendMessage) or a content script (by tabs.sendMessage).Parameters:
Name Type Argument Description request
Chrome.Msg.Message details for the message
sender
Object <optional>
MessageSender object
response
function <optional>
function to call once after processing
- Source:
- See:
Returns:
true if asynchronous
- Type
- boolean
-
<private, static> _onMouseClick()
-
Event: mouse click
- Source:
-
<private, static> _onMouseMove(ev)
-
Event: mousemove
Parameters:
Name Type Description ev
MouseEvent mousemove event
- Source:
-
<static> initialize()
-
Add the event listeners
- Source: