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

Side by Side Diff: Source/core/html/MediaController.h

Issue 156173003: Remove unused parts of MediaControllerInterface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/MediaController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public: 49 public:
50 static PassRefPtr<MediaController> create(ExecutionContext*); 50 static PassRefPtr<MediaController> create(ExecutionContext*);
51 virtual ~MediaController(); 51 virtual ~MediaController();
52 52
53 void addMediaElement(HTMLMediaElement*); 53 void addMediaElement(HTMLMediaElement*);
54 void removeMediaElement(HTMLMediaElement*); 54 void removeMediaElement(HTMLMediaElement*);
55 bool containsMediaElement(HTMLMediaElement*) const; 55 bool containsMediaElement(HTMLMediaElement*) const;
56 56
57 const String& mediaGroup() const { return m_mediaGroup; } 57 const String& mediaGroup() const { return m_mediaGroup; }
58 58
59 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE; 59 PassRefPtr<TimeRanges> buffered() const;
60 virtual PassRefPtr<TimeRanges> seekable() const OVERRIDE; 60 PassRefPtr<TimeRanges> seekable() const;
61 virtual PassRefPtr<TimeRanges> played() OVERRIDE; 61 PassRefPtr<TimeRanges> played();
62 62
63 virtual double duration() const OVERRIDE; 63 virtual double duration() const OVERRIDE;
64 virtual double currentTime() const OVERRIDE; 64 virtual double currentTime() const OVERRIDE;
65 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE; 65 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE;
66 66
67 virtual bool paused() const OVERRIDE { return m_paused; } 67 virtual bool paused() const OVERRIDE { return m_paused; }
68 virtual void play() OVERRIDE; 68 virtual void play() OVERRIDE;
69 virtual void pause() OVERRIDE; 69 virtual void pause() OVERRIDE;
70 void unpause(); 70 void unpause();
71 71
72 virtual double defaultPlaybackRate() const OVERRIDE { return m_defaultPlayba ckRate; } 72 double defaultPlaybackRate() const { return m_defaultPlaybackRate; }
73 virtual void setDefaultPlaybackRate(double) OVERRIDE; 73 void setDefaultPlaybackRate(double);
74 74
75 virtual double playbackRate() const OVERRIDE; 75 double playbackRate() const;
76 virtual void setPlaybackRate(double) OVERRIDE; 76 void setPlaybackRate(double);
77 77
78 virtual double volume() const OVERRIDE { return m_volume; } 78 virtual double volume() const OVERRIDE { return m_volume; }
79 virtual void setVolume(double, ExceptionState&) OVERRIDE; 79 virtual void setVolume(double, ExceptionState&) OVERRIDE;
80 80
81 virtual bool muted() const OVERRIDE { return m_muted; } 81 virtual bool muted() const OVERRIDE { return m_muted; }
82 virtual void setMuted(bool) OVERRIDE; 82 virtual void setMuted(bool) OVERRIDE;
83 83
84 HTMLMediaElement::ReadyState readyState() const { return m_readyState; } 84 HTMLMediaElement::ReadyState readyState() const { return m_readyState; }
85 85
86 enum PlaybackState { WAITING, PLAYING, ENDED }; 86 enum PlaybackState { WAITING, PLAYING, ENDED };
87 const AtomicString& playbackState() const; 87 const AtomicString& playbackState() const;
88 88
89 virtual bool isFullscreen() const OVERRIDE { return false; }
90 virtual void enterFullscreen() OVERRIDE { } 89 virtual void enterFullscreen() OVERRIDE { }
91 90
92 virtual bool hasAudio() const OVERRIDE; 91 virtual bool hasAudio() const OVERRIDE;
93 virtual bool hasVideo() const OVERRIDE; 92 virtual bool hasVideo() const OVERRIDE;
94 virtual bool hasClosedCaptions() const OVERRIDE; 93 virtual bool hasClosedCaptions() const OVERRIDE;
95 virtual void setClosedCaptionsVisible(bool) OVERRIDE; 94 virtual void setClosedCaptionsVisible(bool) OVERRIDE;
96 virtual bool closedCaptionsVisible() const OVERRIDE { return m_closedCaption sVisible; } 95 virtual bool closedCaptionsVisible() const OVERRIDE { return m_closedCaption sVisible; }
97 96
98 virtual void beginScrubbing() OVERRIDE; 97 virtual void beginScrubbing() OVERRIDE;
99 virtual void endScrubbing() OVERRIDE; 98 virtual void endScrubbing() OVERRIDE;
100 99
101 virtual bool canPlay() const OVERRIDE; 100 virtual bool canPlay() const OVERRIDE;
102 101
103 virtual bool hasCurrentSrc() const OVERRIDE;
104
105 bool isBlocked() const; 102 bool isBlocked() const;
106 103
107 void clearExecutionContext() { m_executionContext = 0; } 104 void clearExecutionContext() { m_executionContext = 0; }
108 105
109 private: 106 private:
110 MediaController(ExecutionContext*); 107 MediaController(ExecutionContext*);
111 void reportControllerState(); 108 void reportControllerState();
112 void updateReadyState(); 109 void updateReadyState();
113 void updatePlaybackState(); 110 void updatePlaybackState();
114 void updateMediaElements(); 111 void updateMediaElements();
(...skipping 27 matching lines...) Expand all
142 bool m_closedCaptionsVisible; 139 bool m_closedCaptionsVisible;
143 OwnPtr<Clock> m_clock; 140 OwnPtr<Clock> m_clock;
144 ExecutionContext* m_executionContext; 141 ExecutionContext* m_executionContext;
145 Timer<MediaController> m_timeupdateTimer; 142 Timer<MediaController> m_timeupdateTimer;
146 double m_previousTimeupdateTime; 143 double m_previousTimeupdateTime;
147 }; 144 };
148 145
149 } // namespace WebCore 146 } // namespace WebCore
150 147
151 #endif 148 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/MediaController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698