| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // -------------------------------------------------------------------------- | 223 // -------------------------------------------------------------------------- |
| 224 | 224 |
| 225 void InitJNI(JNIEnv* env, jobject obj); | 225 void InitJNI(JNIEnv* env, jobject obj); |
| 226 | 226 |
| 227 void InitWebContents(content::WebContents* web_contents); | 227 void InitWebContents(content::WebContents* web_contents); |
| 228 | 228 |
| 229 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 229 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
| 230 | 230 |
| 231 int GetTouchPadding(); | 231 int GetTouchPadding(); |
| 232 | 232 |
| 233 void SendGestureEvent(WebKit::WebInputEvent::Type type, long time_ms, | 233 float DpiScale() const; |
| 234 int x, int y); | 234 WebKit::WebGestureEvent MakeGestureEvent(WebKit::WebInputEvent::Type type, |
| 235 | 235 long time_ms, int x, int y) const; |
| 236 struct JavaObject; | 236 struct JavaObject; |
| 237 JavaObject* java_object_; | 237 JavaObject* java_object_; |
| 238 | 238 |
| 239 // A weak reference to the Java ContentViewCore object. | 239 // A weak reference to the Java ContentViewCore object. |
| 240 JavaObjectWeakGlobalRef java_ref_; | 240 JavaObjectWeakGlobalRef java_ref_; |
| 241 | 241 |
| 242 NotificationRegistrar notification_registrar_; | 242 NotificationRegistrar notification_registrar_; |
| 243 | 243 |
| 244 // Reference to the current WebContents used to determine how and what to | 244 // Reference to the current WebContents used to determine how and what to |
| 245 // display in the ContentViewCore. | 245 // display in the ContentViewCore. |
| 246 WebContentsImpl* web_contents_; | 246 WebContentsImpl* web_contents_; |
| 247 | 247 |
| 248 // Whether the renderer backing this ContentViewCore has crashed. | 248 // Whether the renderer backing this ContentViewCore has crashed. |
| 249 bool tab_crashed_; | 249 bool tab_crashed_; |
| 250 | 250 |
| 251 float dpi_scale_; |
| 252 |
| 251 // The owning window that has a hold of main application activity. | 253 // The owning window that has a hold of main application activity. |
| 252 ui::WindowAndroid* window_android_; | 254 ui::WindowAndroid* window_android_; |
| 253 | 255 |
| 254 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 256 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 255 }; | 257 }; |
| 256 | 258 |
| 257 bool RegisterContentViewCore(JNIEnv* env); | 259 bool RegisterContentViewCore(JNIEnv* env); |
| 258 | 260 |
| 259 } // namespace content | 261 } // namespace content |
| 260 | 262 |
| 261 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 263 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |