Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
|
Ted C
2014/02/18 20:03:14
no (c)
ycheo (away)
2014/02/18 22:28:40
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_EXTERNAL_VIDEO_SURFACE_CONTAINER_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_EXTERNAL_VIDEO_SURFACE_CONTAINER_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 #include "content/common/content_export.h" | |
| 12 | |
| 13 namespace gfx { | |
| 14 class RectF; | |
| 15 } | |
| 16 | |
| 17 namespace content { | |
| 18 class WebContents; | |
| 19 | |
| 20 class CONTENT_EXPORT ExternalVideoSurfaceContainer { | |
|
Ted C
2014/02/18 20:03:14
Some documentation on this class would be good.
ycheo (away)
2014/02/18 22:28:40
Done.
| |
| 21 public: | |
| 22 typedef base::Callback<void(int, jobject)> SurfaceCreatedCB; | |
| 23 typedef base::Callback<void(int)> SurfaceDestroyedCB; | |
| 24 | |
| 25 static ExternalVideoSurfaceContainer* FromWebContents(WebContents* contents); | |
| 26 static void CreateForWebContents(WebContents* contents); | |
| 27 | |
| 28 virtual void RequestExternalVideoSurface( | |
| 29 int player_id, | |
| 30 const SurfaceCreatedCB& surface_created_cb, | |
| 31 const SurfaceDestroyedCB& surface_destroyed_cb) = 0; | |
| 32 virtual void ReleaseExternalVideoSurface(int player_id) = 0; | |
| 33 virtual void OnFrameInfoUpdated() = 0; | |
| 34 virtual void OnExternalVideoSurfacePositionChanged( | |
| 35 int player_id, const gfx::RectF& rect) = 0; | |
| 36 | |
| 37 protected: | |
| 38 virtual ~ExternalVideoSurfaceContainer() {} | |
| 39 }; | |
| 40 | |
| 41 } // namespace content | |
| 42 | |
| 43 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_EXTERNAL_VIDEO_SURFACE_CONTAINER_H_ | |
| OLD | NEW |