com.opera.core.systems.scope.handlers
Interface EventHandler

All Known Implementing Classes:
ScopeEventHandler

public interface EventHandler

Event handler for Scope events and network exceptions.

Author:
Deniz Turkoglu

Method Summary
 void onActiveWindow(Integer id)
          Fired when a window becomes active (steals focus).
 void onDesktopWindowActivated(DesktopWmProtos.DesktopWindowInfo window)
          Fired when a window becomes active (steals focus).
 void onDesktopWindowClosed(DesktopWmProtos.DesktopWindowInfo window)
          Fired when a window instance is closed.
 void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo window)
          Fired when loading Finished event.
 void onDesktopWindowShown(DesktopWmProtos.DesktopWindowInfo window)
          Fired when a desktop window is shown at the last possible moment so the window should be fully visible.
 void onDesktopWindowUpdated(DesktopWmProtos.DesktopWindowInfo window)
          Fired when a new window is created or window has incoming changes (such as title change).
 void onHttpResponse(int responseCode)
          Fired when an HTTP response code is received.
 void onMessage(ConsoleLoggerProtos.ConsoleMessage message)
          Fired on new console messages.
 void onOperaIdle()
          Fired when Opera is idle.
 void onQuickMenuClosed(DesktopWmProtos.QuickMenuID menuId)
          Fired when menu closed.
 void onQuickMenuItemPressed(DesktopWmProtos.QuickMenuItemID menuItemID)
          Fired when menu item is pressed.
 void onQuickMenuShown(DesktopWmProtos.QuickMenuInfo menuInfoShown)
          Fired when menu shown.
 void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)
          Fired when the ready state of a document is communicated.
 void onRequest(int windowId)
           
 void onRuntimeStarted(EsdbgProtos.RuntimeInfo started)
          Fired when a new runtime started is received Runtime-started is needed for tracking EcmaScript injections.
 void onRuntimeStopped(Integer id)
          Fired when a runtime is stopped and no longer injectable.
 void onSelftestDone()
          Fired when all selftests are done.
 void onSelftestOutput(SelftestProtos.SelftestOutput output)
          Fired when receiving the output of a selftest.
 void onUpdatedWindow(WmProtos.WindowInfo window)
          Fired when a new window is created or window has incoming changes (such as title change).
 void onWindowClosed(Integer id)
          Fired when a window instance is closed.
 void onWindowLoaded(int windowId)
          Fired when a window load is complete.
 

Method Detail

onRuntimeStarted

void onRuntimeStarted(EsdbgProtos.RuntimeInfo started)
Fired when a new runtime started is received Runtime-started is needed for tracking EcmaScript injections.

Parameters:
started - information on the runtime that was started

onRuntimeStopped

void onRuntimeStopped(Integer id)
Fired when a runtime is stopped and no longer injectable.

Parameters:
id - ID of the runtime is stopped

onMessage

void onMessage(ConsoleLoggerProtos.ConsoleMessage message)
Fired on new console messages.

Parameters:
message - the incoming message

onUpdatedWindow

void onUpdatedWindow(WmProtos.WindowInfo window)
Fired when a new window is created or window has incoming changes (such as title change).

Parameters:
window - information about the window

onActiveWindow

void onActiveWindow(Integer id)
Fired when a window becomes active (steals focus).

Parameters:
id - ID of the window that becomes active

onWindowClosed

void onWindowClosed(Integer id)
Fired when a window instance is closed.

Parameters:
id - ID of the closed window

onWindowLoaded

void onWindowLoaded(int windowId)
Fired when a window load is complete.

Parameters:
windowId - ID of the window that is loaded

onDesktopWindowShown

void onDesktopWindowShown(DesktopWmProtos.DesktopWindowInfo window)
Fired when a desktop window is shown at the last possible moment so the window should be fully visible.

Parameters:
window - information about the window

onOperaIdle

void onOperaIdle()
Fired when Opera is idle.


onDesktopWindowUpdated

void onDesktopWindowUpdated(DesktopWmProtos.DesktopWindowInfo window)
Fired when a new window is created or window has incoming changes (such as title change).

Parameters:
window - information about the window that is updated

onDesktopWindowActivated

void onDesktopWindowActivated(DesktopWmProtos.DesktopWindowInfo window)
Fired when a window becomes active (steals focus).

Parameters:
window - information about the window that is activated

onDesktopWindowClosed

void onDesktopWindowClosed(DesktopWmProtos.DesktopWindowInfo window)
Fired when a window instance is closed.

Parameters:
window - information about the window that is closed

onDesktopWindowLoaded

void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo window)
Fired when loading Finished event.

Parameters:
window - information about the window that is loaded

onQuickMenuShown

void onQuickMenuShown(DesktopWmProtos.QuickMenuInfo menuInfoShown)
Fired when menu shown.

Parameters:
menuInfoShown - menu information of the recently appeared menu

onQuickMenuClosed

void onQuickMenuClosed(DesktopWmProtos.QuickMenuID menuId)
Fired when menu closed.

Parameters:
menuId - ID of the recently closed menu

onQuickMenuItemPressed

void onQuickMenuItemPressed(DesktopWmProtos.QuickMenuItemID menuItemID)
Fired when menu item is pressed.

Parameters:
menuItemID - ID of the menu item that was pressed

onSelftestOutput

void onSelftestOutput(SelftestProtos.SelftestOutput output)
Fired when receiving the output of a selftest.

Parameters:
output - the output of the selftest

onSelftestDone

void onSelftestDone()
Fired when all selftests are done.


onHttpResponse

void onHttpResponse(int responseCode)
Fired when an HTTP response code is received.

Parameters:
responseCode - the response code

onReadyStateChange

void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)
Fired when the ready state of a document is communicated.

Parameters:
change - the ready state change

onRequest

void onRequest(int windowId)


Copyright © 2012. All Rights Reserved.