public interface WindowManager extends Service
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addWindow(WmProtos.WindowInfo window) |
void |
clearFilter() |
void |
closeAllWindows()
Closes all open windows, including dialogues, by iterating through them and calling
closeWindow(int) on each of them if version 2.1 or greater of the Window Manager service is
available. |
void |
closeWindow(int windowId)
Requests the closing of a specific window.
|
void |
createWindow() |
void |
filterActiveWindow() |
void |
filterWindow(Integer windowId) |
void |
findDriverWindow()
Find a window suitable for driving, find the active window, if it is not a normal window, find
the first normal window via JXPath.
|
int |
getActiveWindowId() |
AtomicInteger |
getLastHttpResponseCode() |
int |
getOpenWindowCount() |
List<Integer> |
getWindowHandles() |
void |
openUrl(int windowId,
String url) |
void |
removeWindow(Integer windowId) |
void |
resetWindowsList() |
void |
setActiveWindow(String title) |
void |
setActiveWindowId(Integer windowId)
Sets the active window if the window is of type 'normal' discards any other window such as
'dialog' or 'unknown'.
|
getServiceName, getServiceVersion, initstatic final String SERVICE_NAME
void setActiveWindowId(Integer windowId)
int getActiveWindowId()
void addWindow(WmProtos.WindowInfo window)
void removeWindow(Integer windowId)
void filterActiveWindow()
void findDriverWindow()
void setActiveWindow(String title)
int getOpenWindowCount()
AtomicInteger getLastHttpResponseCode()
void resetWindowsList()
void clearFilter()
void filterWindow(Integer windowId)
void openUrl(int windowId,
String url)
void createWindow()
void closeWindow(int windowId)
OperaIntervals.WINDOW_CLOSE_TIMEOUT timeout.UnsupportedOperationException - if window manager version is lower than 2.1void closeAllWindows()
closeWindow(int) on each of them if version 2.1 or greater of the Window Manager service is
available. This method deviates from closeWindow(int) and will if not attempt to use
Opera's action system to close the windows and dialogues.
This method is normally blocking, and will not return until the window has been closed or until
it hits the OperaIntervals.WINDOW_CLOSE_TIMEOUT
timeout. However, note that using the action system is slower than Scope, and that it is also
notoriously unreliable. We cannot guarantee that this method will be blocking if the action
mechanism is used.UnsupportedOperationException - if no suitable mechanisms for closing windows exists in
the current productCopyright © 2013. All Rights Reserved.