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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 1471993002: Resume cursor blinking on closing context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: robusted onContextMenuClosed() and fixed nits Created 5 years 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/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index 782c6c8fb36d59f43d62d1dc7a079dadd69bf31c..124003f910f97c9b9f90d2afdeac389c8a3e678d 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -645,6 +645,11 @@ void WebContentsAndroid::GetContentBitmap(
result_callback);
}
+void WebContentsAndroid::OnContextMenuClosed(JNIEnv* env, jobject obj) {
+ static_cast<WebContentsImpl*>(web_contents_)
+ ->NotifyContextMenuClosed(CustomContextMenuContext());
+}
+
void WebContentsAndroid::OnFinishGetContentBitmap(
ScopedJavaGlobalRef<jobject>* obj,
ScopedJavaGlobalRef<jobject>* callback,
@@ -660,4 +665,5 @@ void WebContentsAndroid::OnFinishGetContentBitmap(
java_bitmap.obj(),
response);
}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698