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

Unified Diff: android_webview/native/aw_contents.cc

Issue 136753015: aw: Move clearView implementaiton to native (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalidate to native too 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 9e10dd1a7b84c6ea21b118f776398358dba0707b..074315a1f50fc55b953871ba68877ab16e4c6c19 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -983,6 +983,11 @@ void AwContents::EnableOnNewPicture(JNIEnv* env,
browser_view_renderer_->EnableOnNewPicture(enabled);
}
+void AwContents::ClearView(JNIEnv* env, jobject obj) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ browser_view_renderer_->ClearView();
+}
+
void AwContents::SetExtraHeadersForUrl(JNIEnv* env, jobject obj,
jstring url, jstring jextra_headers) {
std::string extra_headers;
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698