OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 // Creates a java-side smooth scroller. Used by | 274 // Creates a java-side smooth scroller. Used by |
275 // chrome.gpuBenchmarking.smoothScrollBy. | 275 // chrome.gpuBenchmarking.smoothScrollBy. |
276 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller( | 276 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller( |
277 bool scroll_down, int mouse_event_x, int mouse_event_y); | 277 bool scroll_down, int mouse_event_x, int mouse_event_y); |
278 | 278 |
279 // Notifies the java object about the external surface, requesting for one if | 279 // Notifies the java object about the external surface, requesting for one if |
280 // necessary. | 280 // necessary. |
281 void NotifyExternalSurface( | 281 void NotifyExternalSurface( |
282 int player_id, bool is_request, const gfx::RectF& rect); | 282 int player_id, bool is_request, const gfx::RectF& rect); |
283 | 283 |
| 284 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 285 |
| 286 // Returns the context that the ContentViewCore was created with, it would |
| 287 // typically be an Activity context for an on screen view. |
| 288 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| 289 |
284 // -------------------------------------------------------------------------- | 290 // -------------------------------------------------------------------------- |
285 // Methods called from native code | 291 // Methods called from native code |
286 // -------------------------------------------------------------------------- | 292 // -------------------------------------------------------------------------- |
287 | 293 |
288 gfx::Size GetPhysicalBackingSize() const; | 294 gfx::Size GetPhysicalBackingSize() const; |
289 gfx::Size GetViewportSizeDip() const; | 295 gfx::Size GetViewportSizeDip() const; |
290 gfx::Size GetViewportSizeOffsetDip() const; | 296 gfx::Size GetViewportSizeOffsetDip() const; |
291 float GetOverdrawBottomHeightDip() const; | 297 float GetOverdrawBottomHeightDip() const; |
292 | 298 |
293 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); | 299 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 scoped_ptr<SyncInputEventFilter> input_event_filter_; | 371 scoped_ptr<SyncInputEventFilter> input_event_filter_; |
366 | 372 |
367 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 373 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
368 }; | 374 }; |
369 | 375 |
370 bool RegisterContentViewCore(JNIEnv* env); | 376 bool RegisterContentViewCore(JNIEnv* env); |
371 | 377 |
372 } // namespace content | 378 } // namespace content |
373 | 379 |
374 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 380 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |