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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void StartContentIntent(const GURL& content_url); | 264 void StartContentIntent(const GURL& content_url); |
265 | 265 |
266 // Shows the disambiguation popup | 266 // Shows the disambiguation popup |
267 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 267 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
268 // |zoomed_bitmap| --> magnified image of potential touch targets | 268 // |zoomed_bitmap| --> magnified image of potential touch targets |
269 void ShowDisambiguationPopup( | 269 void ShowDisambiguationPopup( |
270 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 270 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
271 | 271 |
272 void RequestExternalVideoSurface(int player_id); | 272 void RequestExternalVideoSurface(int player_id); |
273 | 273 |
| 274 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 275 |
274 // -------------------------------------------------------------------------- | 276 // -------------------------------------------------------------------------- |
275 // Methods called from native code | 277 // Methods called from native code |
276 // -------------------------------------------------------------------------- | 278 // -------------------------------------------------------------------------- |
277 | 279 |
278 gfx::Size GetPhysicalBackingSize() const; | 280 gfx::Size GetPhysicalBackingSize() const; |
279 gfx::Size GetViewportSizeDip() const; | 281 gfx::Size GetViewportSizeDip() const; |
280 gfx::Size GetViewportSizeOffsetDip() const; | 282 gfx::Size GetViewportSizeOffsetDip() const; |
281 float GetOverdrawBottomHeightDip() const; | 283 float GetOverdrawBottomHeightDip() const; |
282 | 284 |
283 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); | 285 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 scoped_ptr<SyncInputEventFilter> input_event_filter_; | 356 scoped_ptr<SyncInputEventFilter> input_event_filter_; |
355 | 357 |
356 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 358 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
357 }; | 359 }; |
358 | 360 |
359 bool RegisterContentViewCore(JNIEnv* env); | 361 bool RegisterContentViewCore(JNIEnv* env); |
360 | 362 |
361 } // namespace content | 363 } // namespace content |
362 | 364 |
363 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 365 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |