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

Side by Side Diff: media/base/surface_manager.h

Issue 1655083002: Enable SurfaceView fullscreen video on Android with WebMediaPlayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@avda-sv
Patch Set: Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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 MEDIA_BASE_SURFACE_MANAGER_H_
6 #define MEDIA_BASE_SURFACE_MANAGER_H_
7
8 #include "base/callback.h"
9 #include "base/macros.h"
10 #include "media/base/media_export.h"
11
12 namespace media {
13
14 using SurfaceCreatedCB = base::Callback<void(int)>;
15 using RequestSurfaceCB = base::Callback<void(const SurfaceCreatedCB&)>;
16
17 class MEDIA_EXPORT SurfaceManager {
18 public:
19 enum { kNoSurfaceID = -1 };
20
21 SurfaceManager() {}
22 virtual ~SurfaceManager() {}
23
24 virtual void CreateFullscreenSurface(
25 const SurfaceCreatedCB& surface_created_cb) = 0;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
29 };
30
31 } // namespace media
32
33 #endif // MEDIA_BASE_SURFACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698