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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 1105263004: "Load image" context menu item to reload a LoFi image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again 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: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index a0e0cbaa7f2d947ea7e906493230f03ce60809dc..fc37e028cb1116cca86342ef9286dd4f83484016 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -752,6 +752,12 @@ void TabAndroid::UpdateTopControlsState(JNIEnv* env,
}
}
+void TabAndroid::ShowOriginalImage(JNIEnv* env, jobject obj) {
+ content::RenderFrameHost* render_frame_host = web_contents()->GetMainFrame();
+ render_frame_host->Send(new ChromeViewMsg_RequestReloadImageForContextNode(
+ render_frame_host->GetRoutingID()));
+}
+
void TabAndroid::SearchByImageInNewTabAsync(JNIEnv* env, jobject obj) {
content::RenderFrameHost* render_frame_host =
web_contents()->GetMainFrame();
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698