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_helper.h" | 10 #include "base/android/jni_helper.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 void StartContentIntent(const GURL& content_url); | 262 void StartContentIntent(const GURL& content_url); |
263 | 263 |
264 // Shows the disambiguation popup | 264 // Shows the disambiguation popup |
265 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 265 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
266 // |zoomed_bitmap| --> magnified image of potential touch targets | 266 // |zoomed_bitmap| --> magnified image of potential touch targets |
267 void ShowDisambiguationPopup( | 267 void ShowDisambiguationPopup( |
268 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 268 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
269 | 269 |
270 void RequestExternalVideoSurface(int player_id); | 270 void RequestExternalVideoSurface(int player_id); |
271 | 271 |
| 272 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 273 |
| 274 // Returns the context that the ContentViewCore was created with, it would |
| 275 // typically be an Activity context for an on screen view. |
| 276 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| 277 |
272 // -------------------------------------------------------------------------- | 278 // -------------------------------------------------------------------------- |
273 // Methods called from native code | 279 // Methods called from native code |
274 // -------------------------------------------------------------------------- | 280 // -------------------------------------------------------------------------- |
275 | 281 |
276 gfx::Size GetPhysicalBackingSize() const; | 282 gfx::Size GetPhysicalBackingSize() const; |
277 gfx::Size GetViewportSizeDip() const; | 283 gfx::Size GetViewportSizeDip() const; |
278 gfx::Size GetViewportSizeOffsetDip() const; | 284 gfx::Size GetViewportSizeOffsetDip() const; |
279 float GetOverdrawBottomHeightDip() const; | 285 float GetOverdrawBottomHeightDip() const; |
280 | 286 |
281 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); | 287 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 scoped_ptr<SyncInputEventFilter> input_event_filter_; | 353 scoped_ptr<SyncInputEventFilter> input_event_filter_; |
348 | 354 |
349 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 355 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
350 }; | 356 }; |
351 | 357 |
352 bool RegisterContentViewCore(JNIEnv* env); | 358 bool RegisterContentViewCore(JNIEnv* env); |
353 | 359 |
354 } // namespace content | 360 } // namespace content |
355 | 361 |
356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 362 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |