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

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

Issue 1990313002: Split Media.Controls.Show in .Video and .Audio. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more comments Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.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) 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 29 matching lines...) Expand all
40 #include "public/platform/WebAudioSourceProviderClient.h" 40 #include "public/platform/WebAudioSourceProviderClient.h"
41 #include "public/platform/WebMediaPlayerClient.h" 41 #include "public/platform/WebMediaPlayerClient.h"
42 #include "public/platform/WebMimeRegistry.h" 42 #include "public/platform/WebMimeRegistry.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class AudioSourceProviderClient; 46 class AudioSourceProviderClient;
47 class AudioTrackList; 47 class AudioTrackList;
48 class ContentType; 48 class ContentType;
49 class CueTimeline; 49 class CueTimeline;
50 class EnumerationHistogram;
50 class Event; 51 class Event;
51 class ExceptionState; 52 class ExceptionState;
52 class HTMLSourceElement; 53 class HTMLSourceElement;
53 class HTMLTrackElement; 54 class HTMLTrackElement;
54 class KURL; 55 class KURL;
55 class MediaControls; 56 class MediaControls;
56 class MediaError; 57 class MediaError;
57 class MediaStreamDescriptor; 58 class MediaStreamDescriptor;
58 class HTMLMediaSource; 59 class HTMLMediaSource;
59 class ScriptState; 60 class ScriptState;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 void scheduleResolvePlayPromises(); 470 void scheduleResolvePlayPromises();
470 void scheduleRejectPlayPromises(ExceptionCode); 471 void scheduleRejectPlayPromises(ExceptionCode);
471 void scheduleNotifyPlaying(); 472 void scheduleNotifyPlaying();
472 473
473 void resolvePlayPromises(); 474 void resolvePlayPromises();
474 // TODO(mlamouri): this is used for cancellable tasks because we can't pass 475 // TODO(mlamouri): this is used for cancellable tasks because we can't pass
475 // parameters. 476 // parameters.
476 void rejectPlayPromises(); 477 void rejectPlayPromises();
477 void rejectPlayPromises(ExceptionCode, const String&); 478 void rejectPlayPromises(ExceptionCode, const String&);
478 479
480 EnumerationHistogram& showControlsHistogram() const;
481
479 UnthrottledTimer<HTMLMediaElement> m_loadTimer; 482 UnthrottledTimer<HTMLMediaElement> m_loadTimer;
480 UnthrottledTimer<HTMLMediaElement> m_progressEventTimer; 483 UnthrottledTimer<HTMLMediaElement> m_progressEventTimer;
481 UnthrottledTimer<HTMLMediaElement> m_playbackProgressTimer; 484 UnthrottledTimer<HTMLMediaElement> m_playbackProgressTimer;
482 UnthrottledTimer<HTMLMediaElement> m_audioTracksTimer; 485 UnthrottledTimer<HTMLMediaElement> m_audioTracksTimer;
483 Member<TimeRanges> m_playedTimeRanges; 486 Member<TimeRanges> m_playedTimeRanges;
484 Member<GenericEventQueue> m_asyncEventQueue; 487 Member<GenericEventQueue> m_asyncEventQueue;
485 488
486 double m_playbackRate; 489 double m_playbackRate;
487 double m_defaultPlaybackRate; 490 double m_defaultPlaybackRate;
488 NetworkState m_networkState; 491 NetworkState m_networkState;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 inline bool isHTMLMediaElement(const HTMLElement& element) 660 inline bool isHTMLMediaElement(const HTMLElement& element)
658 { 661 {
659 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 662 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
660 } 663 }
661 664
662 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 665 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
663 666
664 } // namespace blink 667 } // namespace blink
665 668
666 #endif // HTMLMediaElement_h 669 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698