| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 jint ua_override_option, | 86 jint ua_override_option, |
| 87 jstring extra_headers, | 87 jstring extra_headers, |
| 88 jbyteArray post_data, | 88 jbyteArray post_data, |
| 89 jstring base_url_for_data_url, | 89 jstring base_url_for_data_url, |
| 90 jstring virtual_url_for_data_url, | 90 jstring virtual_url_for_data_url, |
| 91 jboolean can_load_local_resources, | 91 jboolean can_load_local_resources, |
| 92 jboolean is_renderer_initiated); | 92 jboolean is_renderer_initiated); |
| 93 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; | 93 base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const; |
| 94 jboolean IsIncognito(JNIEnv* env, jobject obj); | 94 jboolean IsIncognito(JNIEnv* env, jobject obj); |
| 95 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); | 95 void SendOrientationChangeEvent(JNIEnv* env, jobject obj, jint orientation); |
| 96 static bool ShouldConvertToMouseEvent(const ui::MotionEvent& event); |
| 96 jboolean OnTouchEvent(JNIEnv* env, | 97 jboolean OnTouchEvent(JNIEnv* env, |
| 97 jobject obj, | 98 jobject obj, |
| 98 jobject motion_event, | 99 jobject motion_event, |
| 99 jlong time_ms, | 100 jlong time_ms, |
| 100 jint android_action, | 101 jint android_action, |
| 101 jint pointer_count, | 102 jint pointer_count, |
| 102 jint history_size, | 103 jint history_size, |
| 103 jint action_index, | 104 jint action_index, |
| 104 jfloat pos_x_0, | 105 jfloat pos_x_0, |
| 105 jfloat pos_y_0, | 106 jfloat pos_y_0, |
| 106 jfloat pos_x_1, | 107 jfloat pos_x_1, |
| 107 jfloat pos_y_1, | 108 jfloat pos_y_1, |
| 108 jint pointer_id_0, | 109 jint pointer_id_0, |
| 109 jint pointer_id_1, | 110 jint pointer_id_1, |
| 110 jfloat touch_major_0, | 111 jfloat touch_major_0, |
| 111 jfloat touch_major_1, | 112 jfloat touch_major_1, |
| 112 jfloat raw_pos_x, | 113 jfloat raw_pos_x, |
| 113 jfloat raw_pos_y); | 114 jfloat raw_pos_y, |
| 115 jint android_tool_type_0, |
| 116 jint android_tool_type_1, |
| 117 jint android_button_state); |
| 114 jboolean SendMouseMoveEvent(JNIEnv* env, | 118 jboolean SendMouseMoveEvent(JNIEnv* env, |
| 115 jobject obj, | 119 jobject obj, |
| 116 jlong time_ms, | 120 jlong time_ms, |
| 117 jfloat x, | 121 jfloat x, |
| 118 jfloat y); | 122 jfloat y); |
| 119 jboolean SendMouseWheelEvent(JNIEnv* env, | 123 jboolean SendMouseWheelEvent(JNIEnv* env, |
| 120 jobject obj, | 124 jobject obj, |
| 121 jlong time_ms, | 125 jlong time_ms, |
| 122 jfloat x, | 126 jfloat x, |
| 123 jfloat y, | 127 jfloat y, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 371 |
| 368 // The owning window that has a hold of main application activity. | 372 // The owning window that has a hold of main application activity. |
| 369 ui::WindowAndroid* window_android_; | 373 ui::WindowAndroid* window_android_; |
| 370 | 374 |
| 371 // The cache of device's current orientation set from Java side, this value | 375 // The cache of device's current orientation set from Java side, this value |
| 372 // will be sent to Renderer once it is ready. | 376 // will be sent to Renderer once it is ready. |
| 373 int device_orientation_; | 377 int device_orientation_; |
| 374 | 378 |
| 375 bool accessibility_enabled_; | 379 bool accessibility_enabled_; |
| 376 | 380 |
| 381 int mouse_drag_start_x_; |
| 382 int mouse_drag_start_y_; |
| 383 |
| 377 // Manages injecting Java objects. | 384 // Manages injecting Java objects. |
| 378 scoped_ptr<JavaBridgeDispatcherHostManager> | 385 scoped_ptr<JavaBridgeDispatcherHostManager> |
| 379 java_bridge_dispatcher_host_manager_; | 386 java_bridge_dispatcher_host_manager_; |
| 380 | 387 |
| 381 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 388 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 382 }; | 389 }; |
| 383 | 390 |
| 384 bool RegisterContentViewCore(JNIEnv* env); | 391 bool RegisterContentViewCore(JNIEnv* env); |
| 385 | 392 |
| 386 } // namespace content | 393 } // namespace content |
| 387 | 394 |
| 388 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 395 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |