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

Examples of com.opera.core.systems.scope.protos.ExecProtos.ScreenWatcherResult


      ColorSpec.Builder colorSpec = convertColor(color.getColour());
      colorSpec.setId(++i);
      builder.addColorSpecList(colorSpec);
    }

    ScreenWatcherResult result = executeScreenWatcher(builder, timeout);

    ImmutableList.Builder<ColorResult> matches = ImmutableList.builder();
    for (ColorMatch match : result.getColorMatchListList()) {
      matches.add(new ColorResult(match.getId(), match.getCount()));
    }

    return new ScreenCaptureReply(result.getMd5(), matches.build());
  }
View Full Code Here


    builder.addAllMd5List(hashes);
    if (!includeImage) {
      builder.setIncludeImage(false);
    }

    ScreenWatcherResult result = executeScreenWatcher(builder, (int) timeout);

    return new ScreenCaptureReply(result.getMd5(), result.getPng().toByteArray());
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.ExecProtos.ScreenWatcherResult

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.