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

Side by Side Diff: third_party/WebKit/Source/core/html/media/MediaControls.h

Issue 2782373002: Remove MediaControls methods needed for the Cast button (Closed)
Patch Set: Fixed more tests 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
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 #ifndef MediaControls_h 5 #ifndef MediaControls_h
6 #define MediaControls_h 6 #define MediaControls_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/heap/Visitor.h" 10 #include "platform/heap/Visitor.h"
(...skipping 29 matching lines...) Expand all
40 virtual void Reset() = 0; 40 virtual void Reset() = 0;
41 41
42 // Notify the media controls that the controlsList attribute has changed. 42 // Notify the media controls that the controlsList attribute has changed.
43 virtual void OnControlsListUpdated() = 0; 43 virtual void OnControlsListUpdated() = 0;
44 44
45 // TODO(mlamouri): this is temporary to notify the controls that an 45 // TODO(mlamouri): this is temporary to notify the controls that an
46 // HTMLTrackElement failed to load because there is no web exposed way to 46 // HTMLTrackElement failed to load because there is no web exposed way to
47 // be notified on the TextTrack object. See https://crbug.com/669977 47 // be notified on the TextTrack object. See https://crbug.com/669977
48 virtual void OnTrackElementFailedToLoad() = 0; 48 virtual void OnTrackElementFailedToLoad() = 0;
49 49
50 // TODO(mlamouri): the following methods will be able to become private when
51 // the controls have moved to modules/ and have access to RemotePlayback.
52 virtual void OnRemotePlaybackAvailabilityChanged() = 0;
53 virtual void OnRemotePlaybackConnecting() = 0;
54 virtual void OnRemotePlaybackDisconnected() = 0;
55
56 // TODO(mlamouri): this method is needed in order to notify the controls that 50 // TODO(mlamouri): this method is needed in order to notify the controls that
57 // the attribute have changed. 51 // the attribute have changed.
58 virtual void OnDisableRemotePlaybackAttributeChanged() = 0; 52 virtual void OnDisableRemotePlaybackAttributeChanged() = 0;
59 53
60 // TODO(mlamouri): this method should be moved away from the interface to 54 // TODO(mlamouri): this method should be moved away from the interface to
61 // become an implementation detail. 55 // become an implementation detail.
62 virtual void NetworkStateChanged() = 0; 56 virtual void NetworkStateChanged() = 0;
63 57
64 // Returns the layout object for the part of the controls that should be 58 // Returns the layout object for the part of the controls that should be
65 // used for overlap checking during text track layout. May be null. 59 // used for overlap checking during text track layout. May be null.
(...skipping 12 matching lines...) Expand all
78 72
79 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
80 74
81 private: 75 private:
82 Member<HTMLMediaElement> media_element_; 76 Member<HTMLMediaElement> media_element_;
83 }; 77 };
84 78
85 } // namespace blink 79 } // namespace blink
86 80
87 #endif // MediaControls_h 81 #endif // MediaControls_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698