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

Side by Side Diff: Source/modules/mediarecorder/MediaRecorderErrorEvent.h

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: esprehn@ last comments Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MediaRecorderErrorEvent_h
6 #define MediaRecorderErrorEvent_h
7
8 #include "modules/EventModules.h"
9 #include "modules/ModulesExport.h"
10 #include "wtf/text/AtomicString.h"
11 #include "wtf/text/WTFString.h"
12
13 namespace blink {
14
15 // TODO(mcasas): Remove completely MediaRecorderErrorEvent, see https://github.c om/w3c/mediacapture-record/issues/14.
16 class MODULES_EXPORT MediaRecorderErrorEvent final : public Event {
17 DEFINE_WRAPPERTYPEINFO();
18 public:
19 virtual ~MediaRecorderErrorEvent() {}
20
21 static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create();
22 static PassRefPtrWillBeRawPtr<MediaRecorderErrorEvent> create(const AtomicSt ring& type, bool canBubble, bool cancelable, const String& name, const String& m essage);
23
24 const String& name() const { return m_name; }
25 const String& message() const { return m_message; }
26
27 // Event
28 virtual const AtomicString& interfaceName() const override;
29
30 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); }
31
32 private:
33 MediaRecorderErrorEvent() {}
34 MediaRecorderErrorEvent(const AtomicString& type, bool canBubble, bool cance lable, const String& name, const String& message);
35
36 String m_name;
37 String m_message;
38 };
39
40 } // namespace blink
41
42 #endif // MediaRecorderErrorEvent_h
OLDNEW
« no previous file with comments | « Source/modules/mediarecorder/MediaRecorder.idl ('k') | Source/modules/mediarecorder/MediaRecorderErrorEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698