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

Unified Diff: chrome/browser/ui/android/context_menu_helper.h

Issue 2777773002: Show the image header for the Context Menu (Closed)
Patch Set: Why be public when you can be private Created 3 years, 9 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/ui/android/context_menu_helper.h
diff --git a/chrome/browser/ui/android/context_menu_helper.h b/chrome/browser/ui/android/context_menu_helper.h
index 5c9dfdb071217c62da0c485131235f9246735349..70c15b3ac78923defbf04f5619346a32b4dfd9e7 100644
--- a/chrome/browser/ui/android/context_menu_helper.h
+++ b/chrome/browser/ui/android/context_menu_helper.h
@@ -45,6 +45,10 @@ class ContextMenuHelper
const base::android::JavaParamRef<jobject>& obj);
void ShareImage(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void RetrieveHeaderThumbnail(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jint j_max_size_px);
+
private:
explicit ContextMenuHelper(content::WebContents* web_contents);
friend class content::WebContentsUserData<ContextMenuHelper>;
@@ -56,6 +60,11 @@ class ContextMenuHelper
const std::vector<uint8_t>& thumbnail_data,
const gfx::Size& original_size);
+ void OnHeaderThumbnailReceived(
+ chrome::mojom::ThumbnailCapturerPtr thumbnail_capturer,
+ const std::vector<uint8_t>& thumbnail_data,
+ const gfx::Size& original_size);
+
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
content::WebContents* web_contents_;

Powered by Google App Engine
This is Rietveld 408576698