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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const GURL& origin_url, | 56 const GURL& origin_url, |
57 const string16& message_text, | 57 const string16& message_text, |
58 const string16& default_prompt_text, | 58 const string16& default_prompt_text, |
59 const base::android::ScopedJavaLocalRef<jobject>& js_result); | 59 const base::android::ScopedJavaLocalRef<jobject>& js_result); |
60 | 60 |
61 void RunBeforeUnloadDialog( | 61 void RunBeforeUnloadDialog( |
62 const GURL& origin_url, | 62 const GURL& origin_url, |
63 const string16& message_text, | 63 const string16& message_text, |
64 const base::android::ScopedJavaLocalRef<jobject>& js_result); | 64 const base::android::ScopedJavaLocalRef<jobject>& js_result); |
65 | 65 |
| 66 void PerformLongClick(); |
| 67 |
66 // |handler| is an instance of | 68 // |handler| is an instance of |
67 // org.chromium.android_webview.AwHttpAuthHandler. | 69 // org.chromium.android_webview.AwHttpAuthHandler. |
68 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, | 70 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, |
69 const std::string& host, | 71 const std::string& host, |
70 const std::string& realm); | 72 const std::string& realm); |
71 | 73 |
72 // Methods called from Java. | 74 // Methods called from Java. |
73 jint GetWebContents(JNIEnv* env, jobject obj); | 75 jint GetWebContents(JNIEnv* env, jobject obj); |
74 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents); | 76 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents); |
75 | 77 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 scoped_ptr<content::WebContents> pending_contents_; | 135 scoped_ptr<content::WebContents> pending_contents_; |
134 | 136 |
135 DISALLOW_COPY_AND_ASSIGN(AwContents); | 137 DISALLOW_COPY_AND_ASSIGN(AwContents); |
136 }; | 138 }; |
137 | 139 |
138 bool RegisterAwContents(JNIEnv* env); | 140 bool RegisterAwContents(JNIEnv* env); |
139 | 141 |
140 } // namespace android_webview | 142 } // namespace android_webview |
141 | 143 |
142 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 144 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |