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

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: 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 7ea7eb6dc4dc62ec567ef3a8488282443d143c9c..15c5110dedf66eebe97301397ddc776e9ecf9f7d 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -742,6 +742,12 @@ void TabAndroid::UpdateTopControlsState(JNIEnv* env,
}
}
+void TabAndroid::ReloadOriginalImage(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();

Powered by Google App Engine
This is Rietveld 408576698