Class Browser.EventListener
Version 1.0.
Defined in: browser.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Describes the event listener functions supported by a Browser.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Browser.EventListener.onBreak(compilationUnit, lineNumber)
Notification that execution has suspended in the specified
compilation unit.
|
<static> |
Browser.EventListener.onBreakpointError(breakpoint)
Notification the specified breakpoint has failed to install or clear.
|
<static> |
Browser.EventListener.onConsoleDebug()
TODO:
|
<static> |
Browser.EventListener.onConsoleError()
TODO:
|
<static> |
Browser.EventListener.onConsoleInfo(browserContext, messages)
Notification the specified information messages have been logged.
|
<static> |
Browser.EventListener.onConsoleLog(browserContext, messages)
Notification the specified messages have been logged.
|
<static> |
Browser.EventListener.onConsoleWarn(browserContext, messages)
Notification the specified warning messages have been logged.
|
<static> |
Browser.EventListener.onContextChanged(fromContext, toContext)
Notification the focus browser context has been changed.
|
<static> |
Browser.EventListener.onContextCreated(browserContext)
Notification the specified browser context has been created.
|
<static> |
Browser.EventListener.onContextDestroyed(browserContext)
Notification the specified browser context has been destroyed.
|
<static> |
Browser.EventListener.onContextLoaded(browserContext)
Notification the specified browser context has completed loading.
|
<static> |
Browser.EventListener.onDisconnect(browser)
Notification the connection to the remote browser has been closed.
|
<static> |
Browser.EventListener.onInspectNode()
TODO:
|
<static> |
Browser.EventListener.onResume(stack)
Notification the specified execution context has resumed execution.
|
<static> |
Browser.EventListener.onScript(compilationUnit)
Notification the specified compilation unit has been compiled (loaded)
in its browser context.
|
<static> |
Browser.EventListener.onToggleBreakpoint(breakpoint)
Notification the specified breakpoint has been installed or cleared.
|
Class Detail
Browser.EventListener()
Describes the event listener functions supported by a Browser.
- Returns:
- a new BrowserEventListener
Method Detail
<static>
Browser.EventListener.onBreak(compilationUnit, lineNumber)
Notification that execution has suspended in the specified
compilation unit.
- Parameters:
- compilationUnit
- the CompilationUnit execution has suspended in
- lineNumber
- the line number execution has suspended at
<static>
Browser.EventListener.onBreakpointError(breakpoint)
Notification the specified breakpoint has failed to install or clear.
State can be retrieved from the breakpoint to determine what failed.
- Parameters:
- breakpoint
- the Breakpoint that failed to install or clear
<static>
Browser.EventListener.onConsoleDebug()
TODO:
<static>
Browser.EventListener.onConsoleError()
TODO:
<static>
Browser.EventListener.onConsoleInfo(browserContext, messages)
Notification the specified information messages have been logged.
- Parameters:
- browserContext
- the BrowserContext the messages were logged from
- messages
- array of messages as String's
<static>
Browser.EventListener.onConsoleLog(browserContext, messages)
Notification the specified messages have been logged.
- Parameters:
- browserContext
- the BrowserContext the messages were logged from
- messages
- array of messages as String's
<static>
Browser.EventListener.onConsoleWarn(browserContext, messages)
Notification the specified warning messages have been logged.
- Parameters:
- browserContext
- the BrowserContext the messages were logged from
- messages
- array of messages as String's
<static>
Browser.EventListener.onContextChanged(fromContext, toContext)
Notification the focus browser context has been changed.
- Parameters:
- fromContext
- the previous BrowserContext that had focus or
null
- toContext
- the BrowserContext that now has focus or
null
<static>
Browser.EventListener.onContextCreated(browserContext)
Notification the specified browser context has been created. This notification
is sent when a new context is created and before any scripts are compiled in
the new context.
- Parameters:
- browserContext
- the BrowserContext that was created
<static>
Browser.EventListener.onContextDestroyed(browserContext)
Notification the specified browser context has been destroyed.
- Parameters:
- browserContext
- the BrowserContext that was destroyed
<static>
Browser.EventListener.onContextLoaded(browserContext)
Notification the specified browser context has completed loading.
- Parameters:
- browserContext
- the BrowserContext that has completed loading
<static>
Browser.EventListener.onDisconnect(browser)
Notification the connection to the remote browser has been closed.
- Parameters:
- browser
- the Browser that has been disconnected
<static>
Browser.EventListener.onInspectNode()
TODO:
<static>
Browser.EventListener.onResume(stack)
Notification the specified execution context has resumed execution.
- Parameters:
- stack
- the JavaScriptStack that has resumed
<static>
Browser.EventListener.onScript(compilationUnit)
Notification the specified compilation unit has been compiled (loaded)
in its browser context.
- Parameters:
- compilationUnit
- the CompilationUnit that has been compiled
<static>
Browser.EventListener.onToggleBreakpoint(breakpoint)
Notification the specified breakpoint has been installed or cleared.
State can be retrieved from the breakpoint to determine whether the
breakpoint is installed or cleared.
- Parameters:
- breakpoint
- the Breakpoint that has been toggled