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

Unified Diff: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java

Issue 1144333004: Make WebView work for external displays (over Presentations). Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
diff --git a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
index 84a34990d35a0c5df5375c3de7a071557f31fdac..7beaa8386ce4673d3dbe02e77aa3b18575fd4916 100644
--- a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
+++ b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
@@ -485,6 +485,10 @@ public class WindowAndroid {
});
}
+ public WeakReference<Context> getCurrentContext() {
boliu 2015/06/01 15:30:18 What does "current" mean here? Just getContext?
gsennton 2015/06/04 14:10:29 Done.
+ return new WeakReference<Context>(getApplicationContext());
+ }
+
/**
* Update whether the placeholder is 'drawn' based on whether an animation is running
* or touch exploration is enabled - if either of those are true, we call

Powered by Google App Engine
This is Rietveld 408576698