Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java

Issue 10963041: Revert "Revert 158067 - Remove native side of content_view_client" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add additional_input_paths as a variable and input to java.gypi Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java b/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
index d33c8c3b1334920165c28c83443b84f8e232c292..4bfec428d79a807104910a3aa5c4c0777fe0c874 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
@@ -19,30 +19,12 @@ import org.chromium.content.browser.util.TestCallbackHelperContainer.OnReceivedE
*/
public class TestContentViewClient extends ContentViewClient {
- private OnPageStartedHelper mOnPageStartedHelper;
- private OnPageFinishedHelper mOnPageFinishedHelper;
- private OnReceivedErrorHelper mOnReceivedErrorHelper;
private OnEvaluateJavaScriptResultHelper mOnEvaluateJavaScriptResultHelper;
public TestContentViewClient() {
- mOnPageStartedHelper = new OnPageStartedHelper();
- mOnPageFinishedHelper = new OnPageFinishedHelper();
- mOnReceivedErrorHelper = new OnReceivedErrorHelper();
mOnEvaluateJavaScriptResultHelper = new OnEvaluateJavaScriptResultHelper();
}
- public OnPageStartedHelper getOnPageStartedHelper() {
- return mOnPageStartedHelper;
- }
-
- public OnPageFinishedHelper getOnPageFinishedHelper() {
- return mOnPageFinishedHelper;
- }
-
- public OnReceivedErrorHelper getOnReceivedErrorHelper() {
- return mOnReceivedErrorHelper;
- }
-
public OnEvaluateJavaScriptResultHelper getOnEvaluateJavaScriptResultHelper() {
return mOnEvaluateJavaScriptResultHelper;
}
@@ -54,24 +36,6 @@ public class TestContentViewClient extends ContentViewClient {
* stop working!
*/
@Override
- public void onPageStarted(String url) {
- super.onPageStarted(url);
- mOnPageStartedHelper.notifyCalled(url);
- }
-
- @Override
- public void onPageFinished(String url) {
- super.onPageFinished(url);
- mOnPageFinishedHelper.notifyCalled(url);
- }
-
- @Override
- public void onReceivedError(int errorCode, String description, String failingUrl) {
- super.onReceivedError(errorCode, description, failingUrl);
- mOnReceivedErrorHelper.notifyCalled(errorCode, description, failingUrl);
- }
-
- @Override
public void onEvaluateJavaScriptResult(int id, String jsonResult) {
super.onEvaluateJavaScriptResult(id, jsonResult);
mOnEvaluateJavaScriptResultHelper.notifyCalled(id, jsonResult);

Powered by Google App Engine
This is Rietveld 408576698