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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionCloseEvent.h

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PresentationConnectionCloseEvent_h 5 #ifndef PresentationConnectionCloseEvent_h
6 #define PresentationConnectionCloseEvent_h 6 #define PresentationConnectionCloseEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/presentation/PresentationConnection.h" 9 #include "modules/presentation/PresentationConnection.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class PresentationConnectionCloseEventInit; 14 class PresentationConnectionCloseEventInit;
15 15
16 // Presentation API event to be fired when the state of a PresentationConnection 16 // Presentation API event to be fired when the state of a PresentationConnection
17 // has changed to 'closed'. 17 // has changed to 'closed'.
18 class PresentationConnectionCloseEvent final : public Event { 18 class PresentationConnectionCloseEvent final : public Event {
19 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
20 public: 20 public:
21 ~PresentationConnectionCloseEvent() override = default; 21 ~PresentationConnectionCloseEvent() override = default;
22 22
23 static RawPtr<PresentationConnectionCloseEvent> create() 23 static PresentationConnectionCloseEvent* create()
24 { 24 {
25 return new PresentationConnectionCloseEvent; 25 return new PresentationConnectionCloseEvent;
26 } 26 }
27 27
28 static RawPtr<PresentationConnectionCloseEvent> create(const AtomicString& e ventType, const String& reason, const String& message) 28 static PresentationConnectionCloseEvent* create(const AtomicString& eventTyp e, const String& reason, const String& message)
29 { 29 {
30 return new PresentationConnectionCloseEvent(eventType, reason, message); 30 return new PresentationConnectionCloseEvent(eventType, reason, message);
31 } 31 }
32 32
33 static RawPtr<PresentationConnectionCloseEvent> create(const AtomicString& e ventType, const PresentationConnectionCloseEventInit& initializer) 33 static PresentationConnectionCloseEvent* create(const AtomicString& eventTyp e, const PresentationConnectionCloseEventInit& initializer)
34 { 34 {
35 return new PresentationConnectionCloseEvent(eventType, initializer); 35 return new PresentationConnectionCloseEvent(eventType, initializer);
36 } 36 }
37 37
38 const String& reason() const { return m_reason; } 38 const String& reason() const { return m_reason; }
39 const String& message() const { return m_message; } 39 const String& message() const { return m_message; }
40 40
41 const AtomicString& interfaceName() const override; 41 const AtomicString& interfaceName() const override;
42 42
43 DECLARE_VIRTUAL_TRACE(); 43 DECLARE_VIRTUAL_TRACE();
44 44
45 private: 45 private:
46 PresentationConnectionCloseEvent() = default; 46 PresentationConnectionCloseEvent() = default;
47 PresentationConnectionCloseEvent(const AtomicString& eventType, const String & reason, const String& message); 47 PresentationConnectionCloseEvent(const AtomicString& eventType, const String & reason, const String& message);
48 PresentationConnectionCloseEvent(const AtomicString& eventType, const Presen tationConnectionCloseEventInit& initializer); 48 PresentationConnectionCloseEvent(const AtomicString& eventType, const Presen tationConnectionCloseEventInit& initializer);
49 49
50 String m_reason; 50 String m_reason;
51 String m_message; 51 String m_message;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // PresentationConnectionAvailableEvent_h 56 #endif // PresentationConnectionAvailableEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698