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

Side by Side Diff: chrome/browser/ui/android/context_menu_helper.cc

Issue 2868403003: added scale animation for context menu (Closed)
Patch Set: periods Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/android/context_menu_helper.h" 5 #include "chrome/browser/ui/android/context_menu_helper.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ContextMenuParamsAndroid::Java_ContextMenuParams_create( 116 ContextMenuParamsAndroid::Java_ContextMenuParams_create(
117 env, params.media_type, 117 env, params.media_type,
118 ConvertUTF8ToJavaString(env, params.page_url.spec()), 118 ConvertUTF8ToJavaString(env, params.page_url.spec()),
119 ConvertUTF8ToJavaString(env, params.link_url.spec()), 119 ConvertUTF8ToJavaString(env, params.link_url.spec()),
120 ConvertUTF16ToJavaString(env, params.link_text), 120 ConvertUTF16ToJavaString(env, params.link_text),
121 ConvertUTF8ToJavaString(env, params.unfiltered_link_url.spec()), 121 ConvertUTF8ToJavaString(env, params.unfiltered_link_url.spec()),
122 ConvertUTF8ToJavaString(env, params.src_url.spec()), 122 ConvertUTF8ToJavaString(env, params.src_url.spec()),
123 ConvertUTF16ToJavaString(env, params.title_text), 123 ConvertUTF16ToJavaString(env, params.title_text),
124 image_was_fetched_lo_fi, 124 image_was_fetched_lo_fi,
125 ConvertUTF8ToJavaString(env, sanitizedReferrer.spec()), 125 ConvertUTF8ToJavaString(env, sanitizedReferrer.spec()),
126 params.referrer_policy, can_save); 126 params.referrer_policy, can_save, params.x, params.y);
127 127
128 return jmenu_info; 128 return jmenu_info;
129 } 129 }
130 130
131 base::android::ScopedJavaLocalRef<jobject> 131 base::android::ScopedJavaLocalRef<jobject>
132 ContextMenuHelper::GetJavaWebContents(JNIEnv* env, 132 ContextMenuHelper::GetJavaWebContents(JNIEnv* env,
133 const JavaParamRef<jobject>& obj) { 133 const JavaParamRef<jobject>& obj) {
134 return web_contents_->GetJavaWebContents(); 134 return web_contents_->GetJavaWebContents();
135 } 135 }
136 136
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 auto* thumbnail_capturer_proxy = thumbnail_capturer.get(); 177 auto* thumbnail_capturer_proxy = thumbnail_capturer.get();
178 thumbnail_capturer_proxy->RequestThumbnailForContextNode( 178 thumbnail_capturer_proxy->RequestThumbnailForContextNode(
179 0, gfx::Size(max_dimen_px, max_dimen_px), 179 0, gfx::Size(max_dimen_px, max_dimen_px),
180 base::Bind(&OnRetrieveImage, base::Passed(&thumbnail_capturer), 180 base::Bind(&OnRetrieveImage, base::Passed(&thumbnail_capturer),
181 base::android::ScopedJavaGlobalRef<jobject>(env, jcallback))); 181 base::android::ScopedJavaGlobalRef<jobject>(env, jcallback)));
182 } 182 }
183 183
184 bool RegisterContextMenuHelper(JNIEnv* env) { 184 bool RegisterContextMenuHelper(JNIEnv* env) {
185 return RegisterNativesImpl(env); 185 return RegisterNativesImpl(env);
186 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698