| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // Methods called from native code | 293 // Methods called from native code |
| 294 // -------------------------------------------------------------------------- | 294 // -------------------------------------------------------------------------- |
| 295 | 295 |
| 296 gfx::Size GetPhysicalBackingSize() const; | 296 gfx::Size GetPhysicalBackingSize() const; |
| 297 gfx::Size GetViewportSizeDip() const; | 297 gfx::Size GetViewportSizeDip() const; |
| 298 gfx::Size GetViewportSizeOffsetDip() const; | 298 gfx::Size GetViewportSizeOffsetDip() const; |
| 299 float GetOverdrawBottomHeightDip() const; | 299 float GetOverdrawBottomHeightDip() const; |
| 300 | 300 |
| 301 void AttachLayer(scoped_refptr<cc::Layer> layer); | 301 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 302 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 302 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 303 void SetNeedsBeginFrame(bool enabled); | 303 void AddBeginFrameSubscriber(); |
| 304 void RemoveBeginFrameSubscriber(); |
| 304 void SetNeedsAnimate(); | 305 void SetNeedsAnimate(); |
| 305 | 306 |
| 306 private: | 307 private: |
| 307 class ContentViewUserData; | 308 class ContentViewUserData; |
| 308 | 309 |
| 309 friend class ContentViewUserData; | 310 friend class ContentViewUserData; |
| 310 virtual ~ContentViewCoreImpl(); | 311 virtual ~ContentViewCoreImpl(); |
| 311 | 312 |
| 312 // NotificationObserver implementation. | 313 // NotificationObserver implementation. |
| 313 virtual void Observe(int type, | 314 virtual void Observe(int type, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 ui::WindowAndroid* window_android_; | 374 ui::WindowAndroid* window_android_; |
| 374 | 375 |
| 375 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 376 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 376 }; | 377 }; |
| 377 | 378 |
| 378 bool RegisterContentViewCore(JNIEnv* env); | 379 bool RegisterContentViewCore(JNIEnv* env); |
| 379 | 380 |
| 380 } // namespace content | 381 } // namespace content |
| 381 | 382 |
| 382 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 383 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |