Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 132233042: Enable the embedded L1/EME support in WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed boliu's comments and rebased. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Shows the disambiguation popup 282 // Shows the disambiguation popup
283 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 283 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
284 // |zoomed_bitmap| --> magnified image of potential touch targets 284 // |zoomed_bitmap| --> magnified image of potential touch targets
285 void ShowDisambiguationPopup( 285 void ShowDisambiguationPopup(
286 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 286 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
287 287
288 // Creates a java-side touch event, used for injecting touch event for 288 // Creates a java-side touch event, used for injecting touch event for
289 // testing/benchmarking purposes 289 // testing/benchmarking purposes
290 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); 290 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer();
291 291
292 // Notifies the java object about the external surface, requesting for one if 292 void RequestExternalVideoSurface(int player_id);
293 // necessary. 293 void ReleaseExternalVideoSurface(int player_id);
294 void NotifyExternalSurface( 294 void NotifyExternalVideoSurfacePositionChanged(int player_id,
295 int player_id, bool is_request, const gfx::RectF& rect); 295 const gfx::RectF& rect);
296 296
297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); 297 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient();
298 298
299 // Returns the context that the ContentViewCore was created with, it would 299 // Returns the context that the ContentViewCore was created with, it would
300 // typically be an Activity context for an on screen view. 300 // typically be an Activity context for an on screen view.
301 base::android::ScopedJavaLocalRef<jobject> GetContext(); 301 base::android::ScopedJavaLocalRef<jobject> GetContext();
302 302
303 // Returns True if the given media should be blocked to load. 303 // Returns True if the given media should be blocked to load.
304 bool ShouldBlockMediaRequest(const GURL& url); 304 bool ShouldBlockMediaRequest(const GURL& url);
305 305
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 GestureEventPacket pending_gesture_packet_; 406 GestureEventPacket pending_gesture_packet_;
407 407
408 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 408 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
409 }; 409 };
410 410
411 bool RegisterContentViewCore(JNIEnv* env); 411 bool RegisterContentViewCore(JNIEnv* env);
412 412
413 } // namespace content 413 } // namespace content
414 414
415 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 415 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698