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

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

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: tests Created 3 years, 11 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 #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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 const base::android::JavaParamRef<jobject>& color_type, 172 const base::android::JavaParamRef<jobject>& color_type,
173 jfloat scale, 173 jfloat scale,
174 jfloat x, 174 jfloat x,
175 jfloat y, 175 jfloat y,
176 jfloat width, 176 jfloat width,
177 jfloat height); 177 jfloat height);
178 178
179 void ReloadLoFiImages(JNIEnv* env, 179 void ReloadLoFiImages(JNIEnv* env,
180 const base::android::JavaParamRef<jobject>& obj); 180 const base::android::JavaParamRef<jobject>& obj);
181 181
182 void InitViewRoot(JNIEnv* env,
183 const base::android::JavaParamRef<jobject>& obj,
184 const base::android::JavaParamRef<jobject>& jview_root);
185
182 int DownloadImage(JNIEnv* env, 186 int DownloadImage(JNIEnv* env,
183 const base::android::JavaParamRef<jobject>& obj, 187 const base::android::JavaParamRef<jobject>& obj,
184 const base::android::JavaParamRef<jstring>& url, 188 const base::android::JavaParamRef<jstring>& url,
185 jboolean is_fav_icon, 189 jboolean is_fav_icon,
186 jint max_bitmap_size, 190 jint max_bitmap_size,
187 jboolean bypass_cache, 191 jboolean bypass_cache,
188 const base::android::JavaParamRef<jobject>& jcallback); 192 const base::android::JavaParamRef<jobject>& jcallback);
189 void DismissTextHandles(JNIEnv* env, 193 void DismissTextHandles(JNIEnv* env,
190 const base::android::JavaParamRef<jobject>& obj); 194 const base::android::JavaParamRef<jobject>& obj);
191 195
(...skipping 21 matching lines...) Expand all
213 base::android::ScopedJavaGlobalRef<jobject> obj_; 217 base::android::ScopedJavaGlobalRef<jobject> obj_;
214 218
215 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 219 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
216 220
217 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 221 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
218 }; 222 };
219 223
220 } // namespace content 224 } // namespace content
221 225
222 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 226 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698