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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 237 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
238 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 238 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
239 | 239 |
240 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); | 240 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); |
241 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, | 241 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, |
242 jstring message, jstring target_origin, jintArray sent_ports); | 242 jstring message, jstring target_origin, jintArray sent_ports); |
243 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports); | 243 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports); |
244 | 244 |
245 void GrantFileSchemeAccesstoChildProcess(JNIEnv* env, jobject obj); | 245 void GrantFileSchemeAccesstoChildProcess(JNIEnv* env, jobject obj); |
246 | 246 |
| 247 void ResumeLoadingCreatedPopupWebContents(JNIEnv* env, jobject obj); |
| 248 |
247 private: | 249 private: |
248 void InitAutofillIfNecessary(bool enabled); | 250 void InitAutofillIfNecessary(bool enabled); |
249 | 251 |
250 // Geolocation API support | 252 // Geolocation API support |
251 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 253 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
252 void HideGeolocationPrompt(const GURL& origin); | 254 void HideGeolocationPrompt(const GURL& origin); |
253 | 255 |
254 void SetDipScaleInternal(float dip_scale); | 256 void SetDipScaleInternal(float dip_scale); |
255 | 257 |
256 JavaObjectWeakGlobalRef java_ref_; | 258 JavaObjectWeakGlobalRef java_ref_; |
(...skipping 19 matching lines...) Expand all Loading... |
276 GLViewRendererManager::Key renderer_manager_key_; | 278 GLViewRendererManager::Key renderer_manager_key_; |
277 | 279 |
278 DISALLOW_COPY_AND_ASSIGN(AwContents); | 280 DISALLOW_COPY_AND_ASSIGN(AwContents); |
279 }; | 281 }; |
280 | 282 |
281 bool RegisterAwContents(JNIEnv* env); | 283 bool RegisterAwContents(JNIEnv* env); |
282 | 284 |
283 } // namespace android_webview | 285 } // namespace android_webview |
284 | 286 |
285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 287 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |