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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 2407303005: Let embedder provide select action mode (Closed)
Patch Set: more comments addressed Created 4 years, 1 month 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return synchronous_compositor_client_; 190 return synchronous_compositor_client_;
191 } 191 }
192 192
193 int DownloadImage(JNIEnv* env, 193 int DownloadImage(JNIEnv* env,
194 const base::android::JavaParamRef<jobject>& obj, 194 const base::android::JavaParamRef<jobject>& obj,
195 const base::android::JavaParamRef<jstring>& url, 195 const base::android::JavaParamRef<jstring>& url,
196 jboolean is_fav_icon, 196 jboolean is_fav_icon,
197 jint max_bitmap_size, 197 jint max_bitmap_size,
198 jboolean bypass_cache, 198 jboolean bypass_cache,
199 const base::android::JavaParamRef<jobject>& jcallback); 199 const base::android::JavaParamRef<jobject>& jcallback);
200 void DismissTextHandles(JNIEnv* env,
201 const base::android::JavaParamRef<jobject>& obj);
200 202
201 private: 203 private:
202 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 204 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
203 205
204 void OnFinishGetContentBitmap( 206 void OnFinishGetContentBitmap(
205 base::android::ScopedJavaGlobalRef<jobject>* obj, 207 base::android::ScopedJavaGlobalRef<jobject>* obj,
206 base::android::ScopedJavaGlobalRef<jobject>* callback, 208 base::android::ScopedJavaGlobalRef<jobject>* callback,
207 const SkBitmap& bitmap, 209 const SkBitmap& bitmap,
208 ReadbackResponse response); 210 ReadbackResponse response);
209 211
(...skipping 12 matching lines...) Expand all
222 SynchronousCompositorClient* synchronous_compositor_client_; 224 SynchronousCompositorClient* synchronous_compositor_client_;
223 225
224 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 226 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
225 227
226 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 228 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
227 }; 229 };
228 230
229 } // namespace content 231 } // namespace content
230 232
231 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 233 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698