OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 // Sets the java delegate | 207 // Sets the java delegate |
208 void SetAwAutofillManagerDelegate(jobject delegate); | 208 void SetAwAutofillManagerDelegate(jobject delegate); |
209 | 209 |
210 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 210 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
211 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 211 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
212 | 212 |
213 private: | 213 private: |
214 void InitAutofillIfNecessary(bool enabled); | 214 void InitAutofillIfNecessary(bool enabled); |
215 void DidDrawGL(const DrawGLResult& result); | 215 void DidDrawGL(const DrawGLResult& result); |
216 void ForceFakeComposite(); | |
217 | 216 |
218 void InitializeHardwareDrawOnRenderThread(); | 217 void InitializeHardwareDrawOnRenderThread(); |
219 void ReleaseHardwareDrawOnRenderThread(); | 218 void ReleaseHardwareDrawOnRenderThread(); |
220 void TrimMemoryOnRenderThread(int level, bool visible); | |
221 | 219 |
222 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; | 220 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; |
223 base::WeakPtr<AwContents> ui_thread_weak_ptr_; | 221 base::WeakPtr<AwContents> ui_thread_weak_ptr_; |
224 | 222 |
225 JavaObjectWeakGlobalRef java_ref_; | 223 JavaObjectWeakGlobalRef java_ref_; |
226 scoped_ptr<content::WebContents> web_contents_; | 224 scoped_ptr<content::WebContents> web_contents_; |
227 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 225 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
228 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 226 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
229 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 227 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
230 scoped_ptr<FindHelper> find_helper_; | 228 scoped_ptr<FindHelper> find_helper_; |
(...skipping 13 matching lines...) Expand all Loading... |
244 std::list<OriginCallback> pending_geolocation_prompts_; | 242 std::list<OriginCallback> pending_geolocation_prompts_; |
245 | 243 |
246 DISALLOW_COPY_AND_ASSIGN(AwContents); | 244 DISALLOW_COPY_AND_ASSIGN(AwContents); |
247 }; | 245 }; |
248 | 246 |
249 bool RegisterAwContents(JNIEnv* env); | 247 bool RegisterAwContents(JNIEnv* env); |
250 | 248 |
251 } // namespace android_webview | 249 } // namespace android_webview |
252 | 250 |
253 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 251 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |