| 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
|
|
|