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

Unified Diff: Source/modules/mediastream/NavigatorUserMediaError.cpp

Issue 23444052: MediaStream API: Updating NavigatorUserMediaError (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/mediastream/NavigatorUserMediaError.cpp
diff --git a/Source/core/dom/Microtask.h b/Source/modules/mediastream/NavigatorUserMediaError.cpp
similarity index 80%
copy from Source/core/dom/Microtask.h
copy to Source/modules/mediastream/NavigatorUserMediaError.cpp
index 27f72cbec01e5795593d3e545a3b5ca3e5c046fa..e9cef28d55f28832dcf3cf43e3528dda82d29eec 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/modules/mediastream/NavigatorUserMediaError.cpp
@@ -28,19 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Microtask_h
-#define Microtask_h
+#include "config.h"
+#include "modules/mediastream/NavigatorUserMediaError.h"
namespace WebCore {
-class Microtask {
-public:
- static void performCheckpoint();
+String NavigatorUserMediaError::name() const
+{
+ switch (m_name) {
+ case NamePermissionDenied:
+ return "PermissionDeniedError";
-private:
- explicit Microtask();
-};
+ case NameConstraintNotSatisfied:
+ return "ConstraintNotSatisfiedError";
+ }
+ ASSERT_NOT_REACHED();
+ return String();
}
-#endif // Microtask_h
+} // namespace WebCore
« no previous file with comments | « Source/modules/mediastream/NavigatorUserMediaError.h ('k') | Source/modules/mediastream/UserMediaRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698