build/mobile/robocop/Driver.java

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 package org.mozilla.gecko;
     7 import android.app.Activity;
     9 public interface Driver {
    10     /**
    11      * Find the first Element using the given method.
    12      * 
    13      * @param activity The activity the element belongs to
    14      * @param id The resource id of the element
    15      * @return The first matching element on the current context, or null if not found.
    16      */
    17     Element findElement(Activity activity, int id);
    19     /**
    20      * Sets up scroll handling so that data is received from the extension.
    21      */
    22     void setupScrollHandling();
    24     int getPageHeight();
    25     int getScrollHeight();
    26     int getHeight();
    27     int getGeckoTop();
    28     int getGeckoLeft();
    29     int getGeckoWidth();
    30     int getGeckoHeight();
    32     void startFrameRecording();
    33     int stopFrameRecording();
    35     void startCheckerboardRecording();
    36     float stopCheckerboardRecording();
    38     /**
    39      * Get a copy of the painted content region.
    40      * @return A 2-D array of pixels (indexed by y, then x). The pixels
    41      * are in ARGB-8888 format.
    42      */
    43     PaintedSurface getPaintedSurface();
    44 }

mercurial