| 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void GoBack(JNIEnv* env, jobject obj); | 106 void GoBack(JNIEnv* env, jobject obj); |
| 107 void GoForward(JNIEnv* env, jobject obj); | 107 void GoForward(JNIEnv* env, jobject obj); |
| 108 void GoToOffset(JNIEnv* env, jobject obj, jint offset); | 108 void GoToOffset(JNIEnv* env, jobject obj, jint offset); |
| 109 jdouble GetLoadProgress(JNIEnv* env, jobject obj) const; | 109 jdouble GetLoadProgress(JNIEnv* env, jobject obj) const; |
| 110 void StopLoading(JNIEnv* env, jobject obj); | 110 void StopLoading(JNIEnv* env, jobject obj); |
| 111 void Reload(JNIEnv* env, jobject obj); | 111 void Reload(JNIEnv* env, jobject obj); |
| 112 jboolean NeedsReload(JNIEnv* env, jobject obj); | 112 jboolean NeedsReload(JNIEnv* env, jobject obj); |
| 113 void ClearHistory(JNIEnv* env, jobject obj); | 113 void ClearHistory(JNIEnv* env, jobject obj); |
| 114 void SetClient(JNIEnv* env, jobject obj, jobject jclient); | 114 void SetClient(JNIEnv* env, jobject obj, jobject jclient); |
| 115 jint EvaluateJavaScript(JNIEnv* env, jobject obj, jstring script); | 115 jint EvaluateJavaScript(JNIEnv* env, jobject obj, jstring script); |
| 116 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() OVERRIDE; |
| 117 virtual bool ShouldUseNativeJsModalDialog( |
| 118 content::JavaScriptMessageType type, |
| 119 bool is_before_unload_dialog, |
| 120 const string16& message, |
| 121 const string16& default_value, |
| 122 jobject js_result) OVERRIDE; |
| 116 void AddJavascriptInterface(JNIEnv* env, | 123 void AddJavascriptInterface(JNIEnv* env, |
| 117 jobject obj, | 124 jobject obj, |
| 118 jobject object, | 125 jobject object, |
| 119 jstring name, | 126 jstring name, |
| 120 jboolean require_annotation); | 127 jboolean require_annotation); |
| 121 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); | 128 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); |
| 122 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); | 129 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); |
| 123 | 130 |
| 124 // -------------------------------------------------------------------------- | 131 // -------------------------------------------------------------------------- |
| 125 // Public methods that call to Java via JNI | 132 // Public methods that call to Java via JNI |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool tab_crashed_; | 215 bool tab_crashed_; |
| 209 | 216 |
| 210 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 217 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 211 }; | 218 }; |
| 212 | 219 |
| 213 bool RegisterContentViewCore(JNIEnv* env); | 220 bool RegisterContentViewCore(JNIEnv* env); |
| 214 | 221 |
| 215 } // namespace content | 222 } // namespace content |
| 216 | 223 |
| 217 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 224 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |