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