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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewStatics.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/ContentViewStatics.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewStatics.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewStatics.java
deleted file mode 100644
index 8e95553e60e32e896b311c90f62fec3aa8129bc5..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewStatics.java
+++ /dev/null
@@ -1,61 +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.net.ProxyChangeListener;
-
-/**
- * Implementations of various static methods.
- */
-public class ContentViewStatics {
-
- /**
- * Return the first substring consisting of the address of a physical location.
- * @see {@link android.webkit.WebView#findAddress(String)}
- *
- * @param addr The string to search for addresses.
- * @return the address, or if no address is found, return null.
- */
- public static String findAddress(String addr) {
- if (addr == null) {
- throw new NullPointerException("addr is null");
- }
- String result = nativeFindAddress(addr);
- return result == null || result.isEmpty() ? null : result;
- }
-
- /**
- * Suspends Webkit timers in all renderers.
- * New renderers created after this call will be created with the
- * default options.
- *
- * @param suspend true if timers should be suspended.
- */
- public static void setWebKitSharedTimersSuspended(boolean suspend) {
- nativeSetWebKitSharedTimersSuspended(suspend);
- }
-
- /**
- * Enables platform notifications of data state and proxy changes.
- * Notifications are enabled by default.
- */
- public static void enablePlatformNotifications() {
- ProxyChangeListener.setEnabled(true);
- }
-
- /**
- * Disables platform notifications of data state and proxy changes.
- * Notifications are enabled by default.
- */
- public static void disablePlatformNotifications () {
- ProxyChangeListener.setEnabled(false);
- }
-
- // Native functions
-
- private static native String nativeFindAddress(String addr);
-
- private static native void nativeSetWebKitSharedTimersSuspended(boolean suspend);
-}

Powered by Google App Engine
This is Rietveld 408576698