com.opera.core.systems.scope.handlers
Class AbstractEventHandler

java.lang.Object
  extended by com.opera.core.systems.scope.handlers.AbstractEventHandler
Direct Known Subclasses:
EventHandler

public abstract class AbstractEventHandler
extends java.lang.Object

Event handler for scope events and network exceptions

Author:
Deniz Turkoglu

Constructor Summary
AbstractEventHandler(ScopeServices services)
           
 
Method Summary
abstract  void onActiveWindow(java.lang.Integer id)
          Fired when a window becomes active (steals focus)
abstract  void onDesktopWindowActivated(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a window becomes active (steals focus)
abstract  void onDesktopWindowClosed(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a window instance is closed
abstract  void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo info)
          Fired when loading Finished event
abstract  void onDesktopWindowShown(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a desktop window is shown at the last possible moment so the window should be fully visible
abstract  void onDesktopWindowUpdated(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a new window is created or window has incoming changes (such as title change)
abstract  void onHttpResponse(int responseCode)
           
abstract  void onMessage(ConsoleLoggerProtos.ConsoleMessage message)
          Fired on new console messages
abstract  void onOperaIdle()
          Fired when opera is idle
abstract  void onQuickMenuClosed(DesktopWmProtos.QuickMenuID menuId)
          Fired when menu closed
abstract  void onQuickMenuItemPressed(DesktopWmProtos.QuickMenuItemID menuItemID)
          Fired when menu item is pressed
abstract  void onQuickMenuShown(DesktopWmProtos.QuickMenuInfo menuInfoShown)
          Fired when menu shown
abstract  void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)
           
abstract  void onRequest(int windowId)
           
abstract  void onRuntimeStarted(EsdbgProtos.RuntimeInfo started)
          Fired when a new runtime started is received Runtime-started is needed for tracking ecmascript injections
abstract  void onRuntimeStopped(java.lang.Integer id)
          Fired when a runtime is stopped and no longer injectable
abstract  void onSelftestDone()
           
abstract  void onSelftestOutput(SelftestProtos.SelftestOutput output)
           
abstract  void onUpdatedWindow(WmProtos.WindowInfo window)
          Fired when a new window is created or window has incoming changes (such as title change)
abstract  void onWindowClosed(java.lang.Integer id)
          Fired when a window instance is closed
abstract  void onWindowLoaded(int windowId)
          Fired when a window load is complete
 int parseHeader(java.lang.String header)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventHandler

public AbstractEventHandler(ScopeServices services)
Method Detail

onRuntimeStarted

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


onMessage

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


onRuntimeStopped

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


onUpdatedWindow

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


onActiveWindow

public abstract void onActiveWindow(java.lang.Integer id)
Fired when a window becomes active (steals focus)


onWindowClosed

public abstract void onWindowClosed(java.lang.Integer id)
Fired when a window instance is closed


onWindowLoaded

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

Parameters:
windowId - Id of the window that is loaded

onDesktopWindowShown

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


onOperaIdle

public abstract void onOperaIdle()
Fired when opera is idle


onDesktopWindowUpdated

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


onDesktopWindowActivated

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


onDesktopWindowClosed

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


onDesktopWindowLoaded

public abstract void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo info)
Fired when loading Finished event


onQuickMenuShown

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


onQuickMenuClosed

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


onQuickMenuItemPressed

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


onSelftestOutput

public abstract void onSelftestOutput(SelftestProtos.SelftestOutput output)

onSelftestDone

public abstract void onSelftestDone()

onHttpResponse

public abstract void onHttpResponse(int responseCode)

onReadyStateChange

public abstract void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)

parseHeader

public int parseHeader(java.lang.String header)

onRequest

public abstract void onRequest(int windowId)


Copyright © 2011. All Rights Reserved.