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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void SetAwAutofillClient(jobject client); | 221 void SetAwAutofillClient(jobject client); |
222 | 222 |
223 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 223 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
224 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 224 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
225 | 225 |
226 private: | 226 private: |
227 void InitDataReductionProxyIfNecessary(); | 227 void InitDataReductionProxyIfNecessary(); |
228 void InitAutofillIfNecessary(bool enabled); | 228 void InitAutofillIfNecessary(bool enabled); |
229 | 229 |
230 void InitializeHardwareDrawIfNeeded(); | 230 void InitializeHardwareDrawIfNeeded(); |
| 231 void ReleaseHardwareDrawIfNeeded(); |
231 | 232 |
232 // Geolocation API support | 233 // Geolocation API support |
233 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 234 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
234 void HideGeolocationPrompt(const GURL& origin); | 235 void HideGeolocationPrompt(const GURL& origin); |
235 | 236 |
236 JavaObjectWeakGlobalRef java_ref_; | 237 JavaObjectWeakGlobalRef java_ref_; |
237 scoped_ptr<content::WebContents> web_contents_; | 238 scoped_ptr<content::WebContents> web_contents_; |
238 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 239 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
239 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 240 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
240 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 241 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
(...skipping 17 matching lines...) Expand all Loading... |
258 GLViewRendererManager::Key renderer_manager_key_; | 259 GLViewRendererManager::Key renderer_manager_key_; |
259 | 260 |
260 DISALLOW_COPY_AND_ASSIGN(AwContents); | 261 DISALLOW_COPY_AND_ASSIGN(AwContents); |
261 }; | 262 }; |
262 | 263 |
263 bool RegisterAwContents(JNIEnv* env); | 264 bool RegisterAwContents(JNIEnv* env); |
264 | 265 |
265 } // namespace android_webview | 266 } // namespace android_webview |
266 | 267 |
267 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 268 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |