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

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

Issue 351213007: Ensure that the controls attribute is correctly reflected in JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: REbase Created 6 years, 5 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // statistics 152 // statistics
153 unsigned webkitAudioDecodedByteCount() const; 153 unsigned webkitAudioDecodedByteCount() const;
154 unsigned webkitVideoDecodedByteCount() const; 154 unsigned webkitVideoDecodedByteCount() const;
155 155
156 // media source extensions 156 // media source extensions
157 void closeMediaSource(); 157 void closeMediaSource();
158 void durationChanged(double duration, bool requestSeek); 158 void durationChanged(double duration, bool requestSeek);
159 159
160 // controls 160 // controls
161 bool controls() const; 161 bool shouldShowControls() const;
162 void setControls(bool);
163 double volume() const; 162 double volume() const;
164 void setVolume(double, ExceptionState&); 163 void setVolume(double, ExceptionState&);
165 bool muted() const; 164 bool muted() const;
166 void setMuted(bool); 165 void setMuted(bool);
167 166
168 // play/pause toggling that uses the media controller if present. togglePlay StateWillPlay() is 167 // play/pause toggling that uses the media controller if present. togglePlay StateWillPlay() is
169 // true if togglePlayState() will call play() or unpause() on the media elem ent or controller. 168 // true if togglePlayState() will call play() or unpause() on the media elem ent or controller.
170 bool togglePlayStateWillPlay() const; 169 bool togglePlayStateWillPlay() const;
171 void togglePlayState(); 170 void togglePlayState();
172 171
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 inline bool isHTMLMediaElement(const HTMLElement& element) 621 inline bool isHTMLMediaElement(const HTMLElement& element)
623 { 622 {
624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 623 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
625 } 624 }
626 625
627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 626 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
628 627
629 } //namespace 628 } //namespace
630 629
631 #endif 630 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/video-controls-attribute-fullscreen-expected.txt ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698