| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // necessary. | 287 // necessary. |
| 288 void NotifyExternalSurface( | 288 void NotifyExternalSurface( |
| 289 int player_id, bool is_request, const gfx::RectF& rect); | 289 int player_id, bool is_request, const gfx::RectF& rect); |
| 290 | 290 |
| 291 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 291 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 292 | 292 |
| 293 // Returns the context that the ContentViewCore was created with, it would | 293 // Returns the context that the ContentViewCore was created with, it would |
| 294 // typically be an Activity context for an on screen view. | 294 // typically be an Activity context for an on screen view. |
| 295 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 295 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| 296 | 296 |
| 297 // Returns True if the given media should be blocked to load. |
| 298 bool ShouldBlockMediaRequest(const GURL& url); |
| 299 |
| 297 // -------------------------------------------------------------------------- | 300 // -------------------------------------------------------------------------- |
| 298 // Methods called from native code | 301 // Methods called from native code |
| 299 // -------------------------------------------------------------------------- | 302 // -------------------------------------------------------------------------- |
| 300 | 303 |
| 301 gfx::Size GetPhysicalBackingSize() const; | 304 gfx::Size GetPhysicalBackingSize() const; |
| 302 gfx::Size GetViewportSizeDip() const; | 305 gfx::Size GetViewportSizeDip() const; |
| 303 gfx::Size GetViewportSizeOffsetDip() const; | 306 gfx::Size GetViewportSizeOffsetDip() const; |
| 304 float GetOverdrawBottomHeightDip() const; | 307 float GetOverdrawBottomHeightDip() const; |
| 305 | 308 |
| 306 void AttachLayer(scoped_refptr<cc::Layer> layer); | 309 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 int device_orientation_; | 392 int device_orientation_; |
| 390 | 393 |
| 391 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 394 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 392 }; | 395 }; |
| 393 | 396 |
| 394 bool RegisterContentViewCore(JNIEnv* env); | 397 bool RegisterContentViewCore(JNIEnv* env); |
| 395 | 398 |
| 396 } // namespace content | 399 } // namespace content |
| 397 | 400 |
| 398 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 401 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |