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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void AddJavascriptInterface(JNIEnv* env, | 116 void AddJavascriptInterface(JNIEnv* env, |
117 jobject obj, | 117 jobject obj, |
118 jobject object, | 118 jobject object, |
119 jstring name, | 119 jstring name, |
120 jboolean require_annotation); | 120 jboolean require_annotation); |
121 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); | 121 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); |
| 122 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); |
122 | 123 |
123 // -------------------------------------------------------------------------- | 124 // -------------------------------------------------------------------------- |
124 // Public methods that call to Java via JNI | 125 // Public methods that call to Java via JNI |
125 // -------------------------------------------------------------------------- | 126 // -------------------------------------------------------------------------- |
126 | 127 |
127 // Creates a popup menu with |items|. | 128 // Creates a popup menu with |items|. |
128 // |multiple| defines if it should support multi-select. | 129 // |multiple| defines if it should support multi-select. |
129 // If not |multiple|, |selected_item| sets the initially selected item. | 130 // If not |multiple|, |selected_item| sets the initially selected item. |
130 // Otherwise, item's "checked" flag selects it. | 131 // Otherwise, item's "checked" flag selects it. |
131 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, | 132 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool tab_crashed_; | 212 bool tab_crashed_; |
212 | 213 |
213 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 214 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
214 }; | 215 }; |
215 | 216 |
216 bool RegisterContentViewCore(JNIEnv* env); | 217 bool RegisterContentViewCore(JNIEnv* env); |
217 | 218 |
218 } // namespace content | 219 } // namespace content |
219 | 220 |
220 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 221 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |