Package com.opera.core.systems.scope.protos.DesktopWmProtos

Examples of com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo


    } else if (service.equals("desktop-window-manager")) {
      switch (DesktopWindowManagerMessage.get(eventId)) {
        case WINDOW_SHOWN:
          DesktopWindowInfo.Builder shownDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, shownDWBuilder);
          DesktopWindowInfo info_shown = shownDWBuilder.build();
          eventHandler.onDesktopWindowShown(info_shown);
          break;
        case WINDOW_UPDATED:
          DesktopWindowInfo.Builder updatedDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, updatedDWBuilder);
          DesktopWindowInfo info_updated = updatedDWBuilder.build();
          eventHandler.onDesktopWindowUpdated(info_updated);
          break;
        case WINDOW_ACTIVATED:
          DesktopWindowInfo.Builder activatedDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, activatedDWBuilder);
          DesktopWindowInfo info_activated = activatedDWBuilder.build();
          eventHandler.onDesktopWindowActivated(info_activated);
          break;
        case WINDOW_CLOSED:
          DesktopWindowInfo.Builder closedDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, closedDWBuilder);
          DesktopWindowInfo info_closed = closedDWBuilder.build();
          eventHandler.onDesktopWindowClosed(info_closed);
          break;
        case WINDOW_PAGE_CHANGED:
          DesktopWindowInfo.Builder pageChangedDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, pageChangedDWBuilder);
          DesktopWindowInfo changedInfoPage = pageChangedDWBuilder.build();
          eventHandler.onDesktopWindowPageChanged(changedInfoPage);
          break;
        case WINDOW_LOADED:
          DesktopWindowInfo.Builder loadedDWBuilder = DesktopWindowInfo.newBuilder();
          buildPayload(event, loadedDWBuilder);
          DesktopWindowInfo info_loaded = loadedDWBuilder.build();
          eventHandler.onDesktopWindowLoaded(info_loaded);
          break;
        case MENU_SHOWN:
          QuickMenuInfo.Builder shownQMBuilder = QuickMenuInfo.newBuilder();
          buildPayload(event, shownQMBuilder);
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.DesktopWmProtos.DesktopWindowInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.