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

Side by Side Diff: Source/core/html/HTMLMediaElement.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 | « no previous file | Source/core/html/MediaController.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 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // network state 106 // network state
107 void setSrc(const AtomicString&); 107 void setSrc(const AtomicString&);
108 const KURL& currentSrc() const { return m_currentSrc; } 108 const KURL& currentSrc() const { return m_currentSrc; }
109 109
110 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO _SOURCE }; 110 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO _SOURCE };
111 NetworkState networkState() const; 111 NetworkState networkState() const;
112 112
113 String preload() const; 113 String preload() const;
114 void setPreload(const AtomicString&); 114 void setPreload(const AtomicString&);
115 115
116 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE FINAL; 116 PassRefPtr<TimeRanges> buffered() const;
117 void load(); 117 void load();
118 String canPlayType(const String& mimeType, const String& keySystem = String( )) const; 118 String canPlayType(const String& mimeType, const String& keySystem = String( )) const;
119 119
120 // ready state 120 // ready state
121 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA }; 121 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA };
122 ReadyState readyState() const; 122 ReadyState readyState() const;
123 bool seeking() const; 123 bool seeking() const;
124 124
125 // playback state 125 // playback state
126 virtual double currentTime() const OVERRIDE FINAL; 126 virtual double currentTime() const OVERRIDE FINAL;
127 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL; 127 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL;
128 virtual double duration() const OVERRIDE FINAL; 128 virtual double duration() const OVERRIDE FINAL;
129 virtual bool paused() const OVERRIDE FINAL; 129 virtual bool paused() const OVERRIDE FINAL;
130 virtual double defaultPlaybackRate() const OVERRIDE FINAL; 130 double defaultPlaybackRate() const;
131 virtual void setDefaultPlaybackRate(double) OVERRIDE FINAL; 131 void setDefaultPlaybackRate(double);
132 virtual double playbackRate() const OVERRIDE FINAL; 132 double playbackRate() const;
133 virtual void setPlaybackRate(double) OVERRIDE FINAL; 133 void setPlaybackRate(double);
134 void updatePlaybackRate(); 134 void updatePlaybackRate();
135 virtual PassRefPtr<TimeRanges> played() OVERRIDE FINAL; 135 PassRefPtr<TimeRanges> played();
136 virtual PassRefPtr<TimeRanges> seekable() const OVERRIDE FINAL; 136 PassRefPtr<TimeRanges> seekable() const;
137 bool ended() const; 137 bool ended() const;
138 bool autoplay() const; 138 bool autoplay() const;
139 bool loop() const; 139 bool loop() const;
140 void setLoop(bool b); 140 void setLoop(bool b);
141 virtual void play() OVERRIDE FINAL; 141 virtual void play() OVERRIDE FINAL;
142 virtual void pause() OVERRIDE FINAL; 142 virtual void pause() OVERRIDE FINAL;
143 143
144 // statistics 144 // statistics
145 unsigned webkitAudioDecodedByteCount() const; 145 unsigned webkitAudioDecodedByteCount() const;
146 unsigned webkitVideoDecodedByteCount() const; 146 unsigned webkitVideoDecodedByteCount() const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 // EventTarget function. 241 // EventTarget function.
242 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which 242 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which
243 // causes an ambiguity error at compile time. This class's constructor 243 // causes an ambiguity error at compile time. This class's constructor
244 // ensures that both implementations return document, so return the result 244 // ensures that both implementations return document, so return the result
245 // of one of them here. 245 // of one of them here.
246 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return H TMLElement::executionContext(); } 246 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return H TMLElement::executionContext(); }
247 247
248 bool hasSingleSecurityOrigin() const { return !m_player || m_player->hasSing leSecurityOrigin(); } 248 bool hasSingleSecurityOrigin() const { return !m_player || m_player->hasSing leSecurityOrigin(); }
249 249
250 virtual bool isFullscreen() const OVERRIDE FINAL; 250 bool isFullscreen() const;
251 virtual void enterFullscreen() OVERRIDE FINAL; 251 virtual void enterFullscreen() OVERRIDE FINAL;
252 void exitFullscreen(); 252 void exitFullscreen();
253 253
254 virtual bool hasClosedCaptions() const OVERRIDE FINAL; 254 virtual bool hasClosedCaptions() const OVERRIDE FINAL;
255 virtual bool closedCaptionsVisible() const OVERRIDE FINAL; 255 virtual bool closedCaptionsVisible() const OVERRIDE FINAL;
256 virtual void setClosedCaptionsVisible(bool) OVERRIDE FINAL; 256 virtual void setClosedCaptionsVisible(bool) OVERRIDE FINAL;
257 257
258 MediaControls* mediaControls() const; 258 MediaControls* mediaControls() const;
259 259
260 void sourceWasRemoved(HTMLSourceElement*); 260 void sourceWasRemoved(HTMLSourceElement*);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 void changeNetworkStateFromLoadingToIdle(); 444 void changeNetworkStateFromLoadingToIdle();
445 445
446 void removeBehaviorsRestrictionsAfterFirstUserGesture(); 446 void removeBehaviorsRestrictionsAfterFirstUserGesture();
447 447
448 const AtomicString& mediaGroup() const; 448 const AtomicString& mediaGroup() const;
449 void setMediaGroup(const AtomicString&); 449 void setMediaGroup(const AtomicString&);
450 void updateMediaController(); 450 void updateMediaController();
451 bool isBlocked() const; 451 bool isBlocked() const;
452 bool isBlockedOnMediaController() const; 452 bool isBlockedOnMediaController() const;
453 virtual bool hasCurrentSrc() const OVERRIDE FINAL { return !m_currentSrc.isE mpty(); }
454 bool isAutoplaying() const { return m_autoplaying; } 453 bool isAutoplaying() const { return m_autoplaying; }
455 454
456 // Currently we have both EME v0.1b and EME WD implemented in media element. 455 // Currently we have both EME v0.1b and EME WD implemented in media element.
457 // But we do not want to support both at the same time. The one used first 456 // But we do not want to support both at the same time. The one used first
458 // will be supported. Use |m_emeMode| to track this selection. 457 // will be supported. Use |m_emeMode| to track this selection.
459 // FIXME: Remove EmeMode once EME v0.1b support is removed. See crbug.com/24 9976. 458 // FIXME: Remove EmeMode once EME v0.1b support is removed. See crbug.com/24 9976.
460 enum EmeMode { EmeModeNotSelected, EmeModePrefixed, EmeModeUnprefixed }; 459 enum EmeMode { EmeModeNotSelected, EmeModePrefixed, EmeModeUnprefixed };
461 460
462 // check (and set if necessary) the encrypted media extensions (EME) mode 461 // check (and set if necessary) the encrypted media extensions (EME) mode
463 // (v0.1b or WD). Returns whether the mode is allowed and successfully set. 462 // (v0.1b or WD). Returns whether the mode is allowed and successfully set.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 inline bool isHTMLMediaElement(const Node& node) 600 inline bool isHTMLMediaElement(const Node& node)
602 { 601 {
603 return node.isElementNode() && toElement(node).isMediaElement(); 602 return node.isElementNode() && toElement(node).isMediaElement();
604 } 603 }
605 604
606 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 605 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
607 606
608 } //namespace 607 } //namespace
609 608
610 #endif 609 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/MediaController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698