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

Side by Side Diff: third_party/WebKit/Source/platform/testing/EmptyWebMediaPlayer.h

Issue 2660003003: Add MediaError.message (Closed)
Patch Set: Address dalecurtis@'s comment: undef STRINGIFY_STATUS_CASE 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
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 "public/platform/WebMediaPlayer.h" 5 #include "public/platform/WebMediaPlayer.h"
6 6
7 #ifndef EmptyWebMediaPlayer_h 7 #ifndef EmptyWebMediaPlayer_h
8 #define EmptyWebMediaPlayer_h 8 #define EmptyWebMediaPlayer_h
9 9
10 namespace blink { 10 namespace blink {
(...skipping 19 matching lines...) Expand all
30 WebSetSinkIdCallbacks*) override {} 30 WebSetSinkIdCallbacks*) override {}
31 bool HasVideo() const override { return false; } 31 bool HasVideo() const override { return false; }
32 bool HasAudio() const override { return false; } 32 bool HasAudio() const override { return false; }
33 WebSize NaturalSize() const override; 33 WebSize NaturalSize() const override;
34 bool Paused() const override { return false; } 34 bool Paused() const override { return false; }
35 bool Seeking() const override { return false; } 35 bool Seeking() const override { return false; }
36 double Duration() const override { return 0.0; } 36 double Duration() const override { return 0.0; }
37 double CurrentTime() const override { return 0.0; } 37 double CurrentTime() const override { return 0.0; }
38 NetworkState GetNetworkState() const override { return kNetworkStateEmpty; } 38 NetworkState GetNetworkState() const override { return kNetworkStateEmpty; }
39 ReadyState GetReadyState() const override { return kReadyStateHaveNothing; } 39 ReadyState GetReadyState() const override { return kReadyStateHaveNothing; }
40 WebString GetErrorMessage() override { return WebString(); } 40 WebString GetErrorMessage() const override;
41 bool DidLoadingProgress() override { return false; } 41 bool DidLoadingProgress() override { return false; }
42 bool HasSingleSecurityOrigin() const override { return true; } 42 bool HasSingleSecurityOrigin() const override { return true; }
43 bool DidPassCORSAccessCheck() const override { return true; } 43 bool DidPassCORSAccessCheck() const override { return true; }
44 double MediaTimeForTimeValue(double time_value) const override { 44 double MediaTimeForTimeValue(double time_value) const override {
45 return time_value; 45 return time_value;
46 }; 46 };
47 unsigned DecodedFrameCount() const override { return 0; } 47 unsigned DecodedFrameCount() const override { return 0; }
48 unsigned DroppedFrameCount() const override { return 0; } 48 unsigned DroppedFrameCount() const override { return 0; }
49 size_t AudioDecodedByteCount() const override { return 0; } 49 size_t AudioDecodedByteCount() const override { return 0; }
50 size_t VideoDecodedByteCount() const override { return 0; } 50 size_t VideoDecodedByteCount() const override { return 0; }
51 void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) override {} 51 void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) override {}
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // EmptyWebMediaPlayer_h 56 #endif // EmptyWebMediaPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698