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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/InterstitialPageDelegateAndroid.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/android/java/src/org/chromium/content/browser/InterstitialPageDelegateAndroid.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/InterstitialPageDelegateAndroid.java b/content/public/android/java/src/org/chromium/content/browser/InterstitialPageDelegateAndroid.java
deleted file mode 100644
index 299e1b348db9a67a2591fe6523086d63358988b7..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/InterstitialPageDelegateAndroid.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2012 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;
-
-import org.chromium.base.CalledByNative;
-import org.chromium.base.JNINamespace;
-
-/**
- * Allows the specification and handling of Interstitial pages in java.
- */
-@JNINamespace("content")
-public class InterstitialPageDelegateAndroid {
-
- private long mNativePtr;
-
- /**
- * Constructs an interstitial with the given HTML content.
- *
- * @param htmlContent The HTML content for the interstitial.
- */
- public InterstitialPageDelegateAndroid(String htmlContent) {
- mNativePtr = nativeInit(htmlContent);
- }
-
- /**
- * @return The pointer to the underlying native counterpart.
- */
- public long getNative() {
- return mNativePtr;
- }
-
- /**
- * Called when "proceed" is triggered on the interstitial.
- */
- @CalledByNative
- protected void onProceed() {
- }
-
- /**
- * Called when "dont' proceed" is triggered on the interstitial.
- */
- @CalledByNative
- protected void onDontProceed() {
- }
-
- /**
- * Called when a command has been received from the interstitial.
- *
- * @param command The command that was received.
- */
- @CalledByNative
- protected void commandReceived(String command) {
- }
-
- @CalledByNative
- private void onNativeDestroyed() {
- mNativePtr = 0;
- }
-
- /**
- * Notifies the native interstitial to proceed.
- */
- protected void proceed() {
- if (mNativePtr != 0) nativeProceed(mNativePtr);
- }
-
- /**
- * Notifies the native interstitial to not proceed.
- */
- protected void dontProceed() {
- if (mNativePtr != 0) nativeDontProceed(mNativePtr);
- }
-
- private native long nativeInit(String htmlContent);
- private native void nativeProceed(long nativeInterstitialPageDelegateAndroid);
- private native void nativeDontProceed(long nativeInterstitialPageDelegateAndroid);
-}

Powered by Google App Engine
This is Rietveld 408576698