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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 639703004: Optimizing DateTimeAndroid and ColorChooserAndroid initializations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 6 years, 2 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_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index a76a5a027f00a3eef9876ab7f5890d13af62f655..78754181777fe14be68ebfb0a7f467fb2720d4ac 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -4,6 +4,8 @@
package org.chromium.content_public.browser;
+import android.content.Context;
+
/**
* The WebContents Java wrapper to allow communicating with the native WebContents object.
*/
@@ -163,4 +165,15 @@ public interface WebContents {
*/
public void evaluateJavaScript(String script, JavaScriptCallback callback);
+ /**
+ * Sets the Context for this WebContents
+ * @param context The Context to be set in WebContents.
+ */
+ public void setContext(Context context);
+
+ /**
+ * Gets the Context of this WebContents
+ * @return The Context of this WebContents.
+ */
+ public Context getContext();
}

Powered by Google App Engine
This is Rietveld 408576698