OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content_shell_apk; | 5 package org.chromium.content_shell_apk; |
6 | 6 |
7 import android.app.Instrumentation; | 7 import android.app.Instrumentation; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 | 9 |
10 import org.chromium.base.test.BaseActivityInstrumentationTestCase; | 10 import org.chromium.base.test.BaseActivityInstrumentationTestCase; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 /** | 61 /** |
62 * Starts the content shell activity with the provided test url. | 62 * Starts the content shell activity with the provided test url. |
63 * The url is synchronously loaded. | 63 * The url is synchronously loaded. |
64 * @param url Test url to load. | 64 * @param url Test url to load. |
65 */ | 65 */ |
66 public void startActivityWithTestUrl(String url) { | 66 public void startActivityWithTestUrl(String url) { |
67 mDelegate.launchContentShellWithUrlSync(url); | 67 mDelegate.launchContentShellWithUrlSync(url); |
68 } | 68 } |
69 | 69 |
70 /** | 70 /** |
| 71 * @param callback it will be called when mouse cursor is updated |
| 72 */ |
| 73 public void setCursorUpdateCallback(Runnable callback) { |
| 74 mDelegate.setCursorUpdateCallback(callback); |
| 75 } |
| 76 |
| 77 /** |
71 * Returns the current ContentViewCore or null if there is no ContentView. | 78 * Returns the current ContentViewCore or null if there is no ContentView. |
72 */ | 79 */ |
73 public ContentViewCore getContentViewCore() { | 80 public ContentViewCore getContentViewCore() { |
74 return mDelegate.getContentViewCore(); | 81 return mDelegate.getContentViewCore(); |
75 } | 82 } |
76 | 83 |
77 /** | 84 /** |
78 * Returns the WebContents of this Shell. | 85 * Returns the WebContents of this Shell. |
79 */ | 86 */ |
80 public WebContents getWebContents() { | 87 public WebContents getWebContents() { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 @Override | 206 @Override |
200 public void waitForActiveShellToBeDoneLoadingForTestCommon() { | 207 public void waitForActiveShellToBeDoneLoadingForTestCommon() { |
201 waitForActiveShellToBeDoneLoading(); | 208 waitForActiveShellToBeDoneLoading(); |
202 } | 209 } |
203 | 210 |
204 @Override | 211 @Override |
205 public ContentShellActivity launchContentShellWithUrlForTestCommon(String ur
l) { | 212 public ContentShellActivity launchContentShellWithUrlForTestCommon(String ur
l) { |
206 return launchContentShellWithUrl(url); | 213 return launchContentShellWithUrl(url); |
207 } | 214 } |
208 } | 215 } |
OLD | NEW |