final WebContents webContents) throws Throwable {
return InstrumentationUtils.runOnMainSyncAndGetResult(
instrumentation, new Callable<Boolean>() {
- @Override
- public Boolean call() {
- return webContents.getNavigationController().canGoBack();
- }
- });
+ @Override
+ public Boolean call() {
+ return webContents.getNavigationController().canGoBack();
+ }
+ });
}
/**
final WebContents webContents, final int offset) throws Throwable {
return InstrumentationUtils.runOnMainSyncAndGetResult(
instrumentation, new Callable<Boolean>() {
- @Override
- public Boolean call() throws Exception {
- return webContents.getNavigationController().canGoToOffset(offset);
- }
- });
+ @Override
+ public Boolean call() throws Exception {
+ return webContents.getNavigationController().canGoToOffset(offset);
+ }
+ });
}
/**
final WebContents webContents) throws Throwable {
return InstrumentationUtils.runOnMainSyncAndGetResult(
instrumentation, new Callable<Boolean>() {
- @Override
- public Boolean call() {
- return webContents.getNavigationController().canGoForward();
- }
- });
+ @Override
+ public Boolean call() {
+ return webContents.getNavigationController().canGoForward();
+ }
+ });
}
/**
final WebContents webContents) throws Throwable {
return InstrumentationUtils.runOnMainSyncAndGetResult(
instrumentation, new Callable<String>() {
- @Override
- public String call() throws Exception {
- return webContents.getUrl();
- }
- });
+ @Override
+ public String call() throws Exception {
+ return webContents.getUrl();
+ }
+ });
}
/**