Chromium Code Reviews| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 338 void DeleteScaledSnapshotTexture(); | 338 void DeleteScaledSnapshotTexture(); |
| 339 | 339 |
| 340 void SendGestureEvent(const blink::WebGestureEvent& event); | 340 void SendGestureEvent(const blink::WebGestureEvent& event); |
| 341 | 341 |
| 342 // Update focus state of the RenderWidgetHostView. | 342 // Update focus state of the RenderWidgetHostView. |
| 343 void SetFocusInternal(bool focused); | 343 void SetFocusInternal(bool focused); |
| 344 | 344 |
| 345 // Send device_orientation_ to renderer. | 345 // Send device_orientation_ to renderer. |
| 346 void SendOrientationChangeEventInternal(); | 346 void SendOrientationChangeEventInternal(); |
| 347 | 347 |
| 348 // Utility method for synthesizing a cancellation touch event and dispatching | |
|
tdresser
2014/03/04 16:19:34
Probably more consistent if "cancellation touch ev
jdduke (slow)
2014/03/04 19:07:03
Done.
| |
| 349 // it through the touch pipeline. | |
| 350 void CancelActiveTouchSequenceIfNecessary(); | |
| 351 | |
| 348 // A weak reference to the Java ContentViewCore object. | 352 // A weak reference to the Java ContentViewCore object. |
| 349 JavaObjectWeakGlobalRef java_ref_; | 353 JavaObjectWeakGlobalRef java_ref_; |
| 350 | 354 |
| 351 NotificationRegistrar notification_registrar_; | 355 NotificationRegistrar notification_registrar_; |
| 352 | 356 |
| 353 // Reference to the current WebContents used to determine how and what to | 357 // Reference to the current WebContents used to determine how and what to |
| 354 // display in the ContentViewCore. | 358 // display in the ContentViewCore. |
| 355 WebContentsImpl* web_contents_; | 359 WebContentsImpl* web_contents_; |
| 356 | 360 |
| 357 // A compositor layer containing any layer that should be shown. | 361 // A compositor layer containing any layer that should be shown. |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 382 bool geolocation_needs_pause_; | 386 bool geolocation_needs_pause_; |
| 383 | 387 |
| 384 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 388 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 385 }; | 389 }; |
| 386 | 390 |
| 387 bool RegisterContentViewCore(JNIEnv* env); | 391 bool RegisterContentViewCore(JNIEnv* env); |
| 388 | 392 |
| 389 } // namespace content | 393 } // namespace content |
| 390 | 394 |
| 391 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 395 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |