| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 gfx::Size GetViewportSizeDip() const; | 295 gfx::Size GetViewportSizeDip() const; |
| 296 gfx::Size GetViewportSizeOffsetDip() const; | 296 gfx::Size GetViewportSizeOffsetDip() const; |
| 297 float GetOverdrawBottomHeightDip() const; | 297 float GetOverdrawBottomHeightDip() const; |
| 298 | 298 |
| 299 void AttachLayer(scoped_refptr<cc::Layer> layer); | 299 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 300 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 300 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 301 void AddBeginFrameSubscriber(); | 301 void AddBeginFrameSubscriber(); |
| 302 void RemoveBeginFrameSubscriber(); | 302 void RemoveBeginFrameSubscriber(); |
| 303 void SetNeedsAnimate(); | 303 void SetNeedsAnimate(); |
| 304 | 304 |
| 305 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
| 306 |
| 305 private: | 307 private: |
| 306 class ContentViewUserData; | 308 class ContentViewUserData; |
| 307 | 309 |
| 308 friend class ContentViewUserData; | 310 friend class ContentViewUserData; |
| 309 virtual ~ContentViewCoreImpl(); | 311 virtual ~ContentViewCoreImpl(); |
| 310 | 312 |
| 311 // NotificationObserver implementation. | 313 // NotificationObserver implementation. |
| 312 virtual void Observe(int type, | 314 virtual void Observe(int type, |
| 313 const NotificationSource& source, | 315 const NotificationSource& source, |
| 314 const NotificationDetails& details) OVERRIDE; | 316 const NotificationDetails& details) OVERRIDE; |
| 315 | 317 |
| 316 // -------------------------------------------------------------------------- | 318 // -------------------------------------------------------------------------- |
| 317 // Other private methods and data | 319 // Other private methods and data |
| 318 // -------------------------------------------------------------------------- | 320 // -------------------------------------------------------------------------- |
| 319 | 321 |
| 320 void InitWebContents(); | 322 void InitWebContents(); |
| 321 | 323 |
| 322 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | |
| 323 | |
| 324 float GetTouchPaddingDip(); | 324 float GetTouchPaddingDip(); |
| 325 | 325 |
| 326 WebKit::WebGestureEvent MakeGestureEvent( | 326 WebKit::WebGestureEvent MakeGestureEvent( |
| 327 WebKit::WebInputEvent::Type type, long time_ms, float x, float y) const; | 327 WebKit::WebInputEvent::Type type, long time_ms, float x, float y) const; |
| 328 | 328 |
| 329 void SendBeginFrame(base::TimeTicks frame_time); | 329 void SendBeginFrame(base::TimeTicks frame_time); |
| 330 | 330 |
| 331 gfx::Size GetViewportSizePix() const; | 331 gfx::Size GetViewportSizePix() const; |
| 332 gfx::Size GetViewportSizeOffsetPix() const; | 332 gfx::Size GetViewportSizeOffsetPix() const; |
| 333 | 333 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 ui::WindowAndroid* window_android_; | 372 ui::WindowAndroid* window_android_; |
| 373 | 373 |
| 374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 bool RegisterContentViewCore(JNIEnv* env); | 377 bool RegisterContentViewCore(JNIEnv* env); |
| 378 | 378 |
| 379 } // namespace content | 379 } // namespace content |
| 380 | 380 |
| 381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |