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

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

Issue 141533006: [Android] Move the java content/ package to content_public/ to start the split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fixes and findbugs line update Created 6 years, 11 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/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java
deleted file mode 100644
index 760192d1e8b590997937908228afbff0080176f6..0000000000000000000000000000000000000000
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser.test.util;
-
-import android.content.Context;
-import android.view.ActionMode;
-import android.view.KeyEvent;
-
-import org.chromium.content.browser.ContentViewClient;
-import org.chromium.content.browser.SelectActionModeCallback.ActionHandler;
-
-/**
- * Simplistic {@link TestContentViewClient} for browser tests.
- * Wraps around existing client so that specific methods can be overridden if needed.
- * This class MUST override ALL METHODS OF the ContentViewClient and pass them
- * to the wrapped client.
- */
-public class TestContentViewClientWrapper extends TestContentViewClient {
-
- private ContentViewClient mWrappedClient;
-
- public TestContentViewClientWrapper(ContentViewClient wrappedClient) {
- assert wrappedClient != null;
- mWrappedClient = wrappedClient;
- }
-
- @Override
- public void onUpdateTitle(String title) {
- super.onUpdateTitle(title);
- mWrappedClient.onUpdateTitle(title);
- }
-
- @Override
- public boolean shouldOverrideKeyEvent(KeyEvent event) {
- return mWrappedClient.shouldOverrideKeyEvent(event);
- }
-
- @Override
- public void onImeEvent() {
- super.onImeEvent();
- mWrappedClient.onImeEvent();
- }
-
- @Override
- public ActionMode.Callback getSelectActionModeCallback(
- Context context, ActionHandler actionHandler, boolean incognito) {
- return mWrappedClient.getSelectActionModeCallback(context, actionHandler, incognito);
- }
-
- @Override
- public void onContextualActionBarShown() {
- super.onContextualActionBarShown();
- mWrappedClient.onContextualActionBarShown();
- }
-
- @Override
- public void onContextualActionBarHidden() {
- super.onContextualActionBarHidden();
- mWrappedClient.onContextualActionBarHidden();
- }
-
- @Override
- public void onStartContentIntent(Context context, String contentUrl) {
- super.onStartContentIntent(context, contentUrl);
- mWrappedClient.onStartContentIntent(context, contentUrl);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698