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

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

Issue 1700743003: Record whether and why the media default controls are being shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-controls-usecount
Patch Set: Created 4 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // statistics 144 // statistics
145 unsigned webkitAudioDecodedByteCount() const; 145 unsigned webkitAudioDecodedByteCount() const;
146 unsigned webkitVideoDecodedByteCount() const; 146 unsigned webkitVideoDecodedByteCount() const;
147 147
148 // media source extensions 148 // media source extensions
149 void closeMediaSource(); 149 void closeMediaSource();
150 void durationChanged(double duration, bool requestSeek); 150 void durationChanged(double duration, bool requestSeek);
151 151
152 // controls 152 // controls
153 bool shouldShowControls() const; 153 bool shouldShowControls() const;
154 void recordShowControls() const;
154 double volume() const; 155 double volume() const;
155 void setVolume(double, ExceptionState&); 156 void setVolume(double, ExceptionState&);
156 bool muted() const; 157 bool muted() const;
157 void setMuted(bool); 158 void setMuted(bool);
158 159
159 void togglePlayState(); 160 void togglePlayState();
160 161
161 AudioTrackList& audioTracks(); 162 AudioTrackList& audioTracks();
162 void audioTrackChanged(); 163 void audioTrackChanged();
163 164
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 inline bool isHTMLMediaElement(const HTMLElement& element) 621 inline bool isHTMLMediaElement(const HTMLElement& element)
621 { 622 {
622 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 623 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
623 } 624 }
624 625
625 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 626 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
626 627
627 } // namespace blink 628 } // namespace blink
628 629
629 #endif // HTMLMediaElement_h 630 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698