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

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

Issue 2883913003: Add multiple destruction callbacks to AndroidOverlay. (Closed)
Patch Set: rebased.... though i got not conflicts? Created 3 years, 7 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
« no previous file with comments | « media/base/android/android_overlay.cc ('k') | media/base/android_overlay_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 #include "media/base/android/mock_android_overlay.h" 5 #include "media/base/android/mock_android_overlay.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 void MockAndroidOverlay::OnOverlayReady() { 37 void MockAndroidOverlay::OnOverlayReady() {
38 config_->is_ready(this); 38 config_->is_ready(this);
39 } 39 }
40 40
41 void MockAndroidOverlay::OnOverlayFailed() { 41 void MockAndroidOverlay::OnOverlayFailed() {
42 config_->is_failed(this); 42 config_->is_failed(this);
43 } 43 }
44 44
45 void MockAndroidOverlay::OnSurfaceDestroyed() { 45 void MockAndroidOverlay::OnSurfaceDestroyed() {
46 config_->is_destroyed(this); 46 RunSurfaceDestroyedCallbacks();
47 } 47 }
48 48
49 } // namespace media 49 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/android_overlay.cc ('k') | media/base/android_overlay_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698