OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 bool hasSingleSecurityOrigin() const { return !m_player || m_player->hasSing
leSecurityOrigin(); } | 284 bool hasSingleSecurityOrigin() const { return !m_player || m_player->hasSing
leSecurityOrigin(); } |
285 | 285 |
286 bool isFullscreen() const; | 286 bool isFullscreen() const; |
287 void enterFullscreen(); | 287 void enterFullscreen(); |
288 void exitFullscreen(); | 288 void exitFullscreen(); |
289 | 289 |
290 bool hasClosedCaptions() const; | 290 bool hasClosedCaptions() const; |
291 bool closedCaptionsVisible() const; | 291 bool closedCaptionsVisible() const; |
292 void setClosedCaptionsVisible(bool); | 292 void setClosedCaptionsVisible(bool); |
293 | 293 |
294 MediaControls* mediaControls(); | 294 MediaControls* mediaControls() const; |
295 | 295 |
296 void sourceWasRemoved(HTMLSourceElement*); | 296 void sourceWasRemoved(HTMLSourceElement*); |
297 void sourceWasAdded(HTMLSourceElement*); | 297 void sourceWasAdded(HTMLSourceElement*); |
298 | 298 |
299 void privateBrowsingStateDidChange(); | 299 void privateBrowsingStateDidChange(); |
300 | 300 |
301 // Media cache management. | 301 // Media cache management. |
302 static void getSitesInMediaCache(Vector<String>&); | 302 static void getSitesInMediaCache(Vector<String>&); |
303 static void clearMediaCache(); | 303 static void clearMediaCache(); |
304 static void clearMediaCacheForSite(const String&); | 304 static void clearMediaCacheForSite(const String&); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 void setPausedInternal(bool); | 501 void setPausedInternal(bool); |
502 | 502 |
503 void setPlaybackRateInternal(float); | 503 void setPlaybackRateInternal(float); |
504 | 504 |
505 virtual void mediaCanStart(); | 505 virtual void mediaCanStart(); |
506 | 506 |
507 void setShouldDelayLoadEvent(bool); | 507 void setShouldDelayLoadEvent(bool); |
508 void invalidateCachedTime(); | 508 void invalidateCachedTime(); |
509 void refreshCachedTime() const; | 509 void refreshCachedTime() const; |
510 | 510 |
511 bool hasMediaControls(); | 511 bool hasMediaControls() const; |
512 bool createMediaControls(); | 512 bool createMediaControls(); |
513 void configureMediaControls(); | 513 void configureMediaControls(); |
514 | 514 |
515 void prepareMediaFragmentURI(); | 515 void prepareMediaFragmentURI(); |
516 void applyMediaFragmentURI(); | 516 void applyMediaFragmentURI(); |
517 | 517 |
518 virtual void* preDispatchEventHandler(Event*); | 518 virtual void* preDispatchEventHandler(Event*); |
519 | 519 |
520 void changeNetworkStateFromLoadingToIdle(); | 520 void changeNetworkStateFromLoadingToIdle(); |
521 | 521 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 inline HTMLMediaElement* toMediaElement(Node* node) | 697 inline HTMLMediaElement* toMediaElement(Node* node) |
698 { | 698 { |
699 ASSERT(!node || isMediaElement(node)); | 699 ASSERT(!node || isMediaElement(node)); |
700 return static_cast<HTMLMediaElement*>(node); | 700 return static_cast<HTMLMediaElement*>(node); |
701 } | 701 } |
702 | 702 |
703 } //namespace | 703 } //namespace |
704 | 704 |
705 #endif | 705 #endif |
706 #endif | 706 #endif |
OLD | NEW |