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

Side by Side Diff: media/base/android/mock_android_overlay.cc

Issue 2813303003: Add AndroidVideoSurfaceChooser to manage overlays. (Closed)
Patch Set: gn fixes for non-android Created 3 years, 8 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 2017 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 #include "media/base/android/mock_android_overlay.h"
6
7 namespace media {
8
9 MockAndroidOverlay::MockAndroidOverlay() : weak_factory_(this) {}
10 MockAndroidOverlay::~MockAndroidOverlay() {}
11
12 void MockAndroidOverlay::SetConfig(const Config& config) {
13 config_ = config;
14 }
15
16 void MockAndroidOverlay::OnOverlayReady() {
17 config_.ready_cb.Run(this);
18 }
19
20 void MockAndroidOverlay::OnOverlayFailed() {
21 config_.failed_cb.Run(this);
22 }
23
24 void MockAndroidOverlay::OnSurfaceDestroyed() {
25 config_.destroyed_cb.Run(this);
26 }
27
28 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698