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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionAvailableEvent.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 2015 The Chromium Authors. All rights reserved. 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 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 PresentationConnectionAvailableEvent_h 5 #ifndef PresentationConnectionAvailableEvent_h
6 #define PresentationConnectionAvailableEvent_h 6 #define PresentationConnectionAvailableEvent_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 PresentationConnectionAvailableEventInit; 14 class PresentationConnectionAvailableEventInit;
15 15
16 // Presentation API event to be fired when a presentation has been triggered 16 // Presentation API event to be fired when a presentation has been triggered
17 // by the embedder using the default presentation URL and id. 17 // by the embedder using the default presentation URL and id.
18 // See https://code.google.com/p/chromium/issues/detail?id=459001 for details. 18 // See https://code.google.com/p/chromium/issues/detail?id=459001 for details.
19 class PresentationConnectionAvailableEvent final : public Event { 19 class PresentationConnectionAvailableEvent final : public Event {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 public: 21 public:
22 ~PresentationConnectionAvailableEvent() override; 22 ~PresentationConnectionAvailableEvent() override;
23 23
24 static RawPtr<PresentationConnectionAvailableEvent> create() 24 static PresentationConnectionAvailableEvent* create()
25 { 25 {
26 return new PresentationConnectionAvailableEvent; 26 return new PresentationConnectionAvailableEvent;
27 } 27 }
28 static RawPtr<PresentationConnectionAvailableEvent> create(const AtomicStrin g& eventType, PresentationConnection* connection) 28 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, PresentationConnection* connection)
29 { 29 {
30 return new PresentationConnectionAvailableEvent(eventType, connection); 30 return new PresentationConnectionAvailableEvent(eventType, connection);
31 } 31 }
32 static RawPtr<PresentationConnectionAvailableEvent> create(const AtomicStrin g& eventType, const PresentationConnectionAvailableEventInit& initializer) 32 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, const PresentationConnectionAvailableEventInit& initializer)
33 { 33 {
34 return new PresentationConnectionAvailableEvent(eventType, initializer); 34 return new PresentationConnectionAvailableEvent(eventType, initializer);
35 } 35 }
36 36
37 PresentationConnection* connection() { return m_connection.get(); } 37 PresentationConnection* connection() { return m_connection.get(); }
38 38
39 const AtomicString& interfaceName() const override; 39 const AtomicString& interfaceName() const override;
40 40
41 DECLARE_VIRTUAL_TRACE(); 41 DECLARE_VIRTUAL_TRACE();
42 42
43 private: 43 private:
44 PresentationConnectionAvailableEvent(); 44 PresentationConnectionAvailableEvent();
45 PresentationConnectionAvailableEvent(const AtomicString& eventType, Presenta tionConnection*); 45 PresentationConnectionAvailableEvent(const AtomicString& eventType, Presenta tionConnection*);
46 PresentationConnectionAvailableEvent(const AtomicString& eventType, const Pr esentationConnectionAvailableEventInit& initializer); 46 PresentationConnectionAvailableEvent(const AtomicString& eventType, const Pr esentationConnectionAvailableEventInit& initializer);
47 47
48 Member<PresentationConnection> m_connection; 48 Member<PresentationConnection> m_connection;
49 }; 49 };
50 50
51 DEFINE_TYPE_CASTS(PresentationConnectionAvailableEvent, Event, event, event->int erfaceName() == EventNames::PresentationConnectionAvailableEvent, event.interfac eName() == EventNames::PresentationConnectionAvailableEvent); 51 DEFINE_TYPE_CASTS(PresentationConnectionAvailableEvent, Event, event, event->int erfaceName() == EventNames::PresentationConnectionAvailableEvent, event.interfac eName() == EventNames::PresentationConnectionAvailableEvent);
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // PresentationConnectionAvailableEvent_h 55 #endif // PresentationConnectionAvailableEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698