OLD | NEW |
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 "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 const base::android::JavaParamRef<jobject>& color_type, | 171 const base::android::JavaParamRef<jobject>& color_type, |
172 jfloat scale, | 172 jfloat scale, |
173 jfloat x, | 173 jfloat x, |
174 jfloat y, | 174 jfloat y, |
175 jfloat width, | 175 jfloat width, |
176 jfloat height); | 176 jfloat height); |
177 | 177 |
178 void OnContextMenuClosed(JNIEnv* env, | 178 void OnContextMenuClosed(JNIEnv* env, |
179 const base::android::JavaParamRef<jobject>& obj); | 179 const base::android::JavaParamRef<jobject>& obj); |
180 | 180 |
| 181 void ReloadLoFiImages(JNIEnv* env, |
| 182 const base::android::JavaParamRef<jobject>& obj); |
| 183 |
181 void set_synchronous_compositor_client(SynchronousCompositorClient* client) { | 184 void set_synchronous_compositor_client(SynchronousCompositorClient* client) { |
182 synchronous_compositor_client_ = client; | 185 synchronous_compositor_client_ = client; |
183 } | 186 } |
184 SynchronousCompositorClient* synchronous_compositor_client() const { | 187 SynchronousCompositorClient* synchronous_compositor_client() const { |
185 return synchronous_compositor_client_; | 188 return synchronous_compositor_client_; |
186 } | 189 } |
187 | 190 |
188 private: | 191 private: |
189 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 192 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
190 | 193 |
191 void OnFinishGetContentBitmap( | 194 void OnFinishGetContentBitmap( |
192 base::android::ScopedJavaGlobalRef<jobject>* obj, | 195 base::android::ScopedJavaGlobalRef<jobject>* obj, |
193 base::android::ScopedJavaGlobalRef<jobject>* callback, | 196 base::android::ScopedJavaGlobalRef<jobject>* callback, |
194 const SkBitmap& bitmap, | 197 const SkBitmap& bitmap, |
195 ReadbackResponse response); | 198 ReadbackResponse response); |
196 | 199 |
197 WebContents* web_contents_; | 200 WebContents* web_contents_; |
198 NavigationControllerAndroid navigation_controller_; | 201 NavigationControllerAndroid navigation_controller_; |
199 base::android::ScopedJavaGlobalRef<jobject> obj_; | 202 base::android::ScopedJavaGlobalRef<jobject> obj_; |
200 SynchronousCompositorClient* synchronous_compositor_client_; | 203 SynchronousCompositorClient* synchronous_compositor_client_; |
201 | 204 |
202 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 205 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
203 | 206 |
204 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 207 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
205 }; | 208 }; |
206 | 209 |
207 } // namespace content | 210 } // namespace content |
208 | 211 |
209 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 212 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
OLD | NEW |