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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 JNIEnv* env, jobject obj, | 81 JNIEnv* env, jobject obj, |
82 jstring url, | 82 jstring url, |
83 jint load_url_type, | 83 jint load_url_type, |
84 jint transition_type, | 84 jint transition_type, |
85 jint ua_override_option, | 85 jint ua_override_option, |
86 jstring extra_headers, | 86 jstring extra_headers, |
87 jbyteArray post_data, | 87 jbyteArray post_data, |
88 jstring base_url_for_data_url, | 88 jstring base_url_for_data_url, |
89 jstring virtual_url_for_data_url, | 89 jstring virtual_url_for_data_url, |
90 jboolean can_load_local_resources); | 90 jboolean can_load_local_resources); |
91 void SetAllUserAgentOverridesInHistory( | |
92 JNIEnv* env, | |
93 jobject obj, | |
94 jstring user_agent_override); | |
95 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; | 91 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; |
96 base::android::ScopedJavaLocalRef<jstring> GetTitle( | 92 base::android::ScopedJavaLocalRef<jstring> GetTitle( |
97 JNIEnv* env, jobject obj) const; | 93 JNIEnv* env, jobject obj) const; |
98 jboolean IsIncognito(JNIEnv* env, jobject obj); | 94 jboolean IsIncognito(JNIEnv* env, jobject obj); |
99 jboolean Crashed(JNIEnv* env, jobject obj) const { return tab_crashed_; } | 95 jboolean Crashed(JNIEnv* env, jobject obj) const { return tab_crashed_; } |
100 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); | 96 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); |
101 jboolean SendTouchEvent(JNIEnv* env, | 97 jboolean SendTouchEvent(JNIEnv* env, |
102 jobject obj, | 98 jobject obj, |
103 jlong time_ms, | 99 jlong time_ms, |
104 jint type, | 100 jint type, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 scoped_ptr<SyncInputEventFilter> input_event_filter_; | 354 scoped_ptr<SyncInputEventFilter> input_event_filter_; |
359 | 355 |
360 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 356 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
361 }; | 357 }; |
362 | 358 |
363 bool RegisterContentViewCore(JNIEnv* env); | 359 bool RegisterContentViewCore(JNIEnv* env); |
364 | 360 |
365 } // namespace content | 361 } // namespace content |
366 | 362 |
367 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 363 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |