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

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

Issue 62543003: Added InvalidAccessError exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to master Created 7 years, 1 month 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 | Source/platform/graphics/media/MediaPlayer.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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 159 {
160 switch (exception) { 160 switch (exception) {
161 case MediaPlayer::NoError: 161 case MediaPlayer::NoError:
162 return; 162 return;
163 case MediaPlayer::InvalidPlayerState: 163 case MediaPlayer::InvalidPlayerState:
164 exceptionState.throwUninformativeAndGenericDOMException(InvalidStateErro r); 164 exceptionState.throwUninformativeAndGenericDOMException(InvalidStateErro r);
165 return; 165 return;
166 case MediaPlayer::KeySystemNotSupported: 166 case MediaPlayer::KeySystemNotSupported:
167 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r); 167 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
168 return; 168 return;
169 case MediaPlayer::InvalidAccess:
170 exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessErr or);
171 return;
169 } 172 }
170 173
171 ASSERT_NOT_REACHED(); 174 ASSERT_NOT_REACHED();
172 return; 175 return;
173 } 176 }
174 177
175 class TrackDisplayUpdateScope { 178 class TrackDisplayUpdateScope {
176 public: 179 public:
177 TrackDisplayUpdateScope(HTMLMediaElement* mediaElement) 180 TrackDisplayUpdateScope(HTMLMediaElement* mediaElement)
178 { 181 {
(...skipping 3690 matching lines...) Expand 10 before | Expand all | Expand 10 after
3869 { 3872 {
3870 scheduleLayerUpdate(); 3873 scheduleLayerUpdate();
3871 } 3874 }
3872 3875
3873 bool HTMLMediaElement::isInteractiveContent() const 3876 bool HTMLMediaElement::isInteractiveContent() const
3874 { 3877 {
3875 return fastHasAttribute(controlsAttr); 3878 return fastHasAttribute(controlsAttr);
3876 } 3879 }
3877 3880
3878 } 3881 }
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698