| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 298 | 298 |
| 299 // Returns the context that the ContentViewCore was created with, it would | 299 // Returns the context that the ContentViewCore was created with, it would |
| 300 // typically be an Activity context for an on screen view. | 300 // typically be an Activity context for an on screen view. |
| 301 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 301 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| 302 | 302 |
| 303 // Returns True if the given media should be blocked to load. | 303 // Returns True if the given media should be blocked to load. |
| 304 bool ShouldBlockMediaRequest(const GURL& url); | 304 bool ShouldBlockMediaRequest(const GURL& url); |
| 305 | 305 |
| 306 void DidStopFlinging(); |
| 307 |
| 306 // -------------------------------------------------------------------------- | 308 // -------------------------------------------------------------------------- |
| 307 // Methods called from native code | 309 // Methods called from native code |
| 308 // -------------------------------------------------------------------------- | 310 // -------------------------------------------------------------------------- |
| 309 | 311 |
| 310 gfx::Size GetPhysicalBackingSize() const; | 312 gfx::Size GetPhysicalBackingSize() const; |
| 311 gfx::Size GetViewportSizeDip() const; | 313 gfx::Size GetViewportSizeDip() const; |
| 312 gfx::Size GetViewportSizeOffsetDip() const; | 314 gfx::Size GetViewportSizeOffsetDip() const; |
| 313 float GetOverdrawBottomHeightDip() const; | 315 float GetOverdrawBottomHeightDip() const; |
| 314 | 316 |
| 315 void AttachLayer(scoped_refptr<cc::Layer> layer); | 317 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 bool geolocation_needs_pause_; | 395 bool geolocation_needs_pause_; |
| 394 | 396 |
| 395 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 397 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 396 }; | 398 }; |
| 397 | 399 |
| 398 bool RegisterContentViewCore(JNIEnv* env); | 400 bool RegisterContentViewCore(JNIEnv* env); |
| 399 | 401 |
| 400 } // namespace content | 402 } // namespace content |
| 401 | 403 |
| 402 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 404 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |