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

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

Issue 2217763003: Remove Blink-WebKit-only document.createEvent strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 PresentationConnectionAvailableEvent* create()
25 {
26 return new PresentationConnectionAvailableEvent;
27 }
28 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, PresentationConnection* connection) 24 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, PresentationConnection* connection)
29 { 25 {
30 return new PresentationConnectionAvailableEvent(eventType, connection); 26 return new PresentationConnectionAvailableEvent(eventType, connection);
31 } 27 }
32 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, const PresentationConnectionAvailableEventInit& initializer) 28 static PresentationConnectionAvailableEvent* create(const AtomicString& even tType, const PresentationConnectionAvailableEventInit& initializer)
33 { 29 {
34 return new PresentationConnectionAvailableEvent(eventType, initializer); 30 return new PresentationConnectionAvailableEvent(eventType, initializer);
35 } 31 }
36 32
37 PresentationConnection* connection() { return m_connection.get(); } 33 PresentationConnection* connection() { return m_connection.get(); }
38 34
39 const AtomicString& interfaceName() const override; 35 const AtomicString& interfaceName() const override;
40 36
41 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
42 38
43 private: 39 private:
44 PresentationConnectionAvailableEvent();
45 PresentationConnectionAvailableEvent(const AtomicString& eventType, Presenta tionConnection*); 40 PresentationConnectionAvailableEvent(const AtomicString& eventType, Presenta tionConnection*);
46 PresentationConnectionAvailableEvent(const AtomicString& eventType, const Pr esentationConnectionAvailableEventInit& initializer); 41 PresentationConnectionAvailableEvent(const AtomicString& eventType, const Pr esentationConnectionAvailableEventInit& initializer);
47 42
48 Member<PresentationConnection> m_connection; 43 Member<PresentationConnection> m_connection;
49 }; 44 };
50 45
51 DEFINE_TYPE_CASTS(PresentationConnectionAvailableEvent, Event, event, event->int erfaceName() == EventNames::PresentationConnectionAvailableEvent, event.interfac eName() == EventNames::PresentationConnectionAvailableEvent); 46 DEFINE_TYPE_CASTS(PresentationConnectionAvailableEvent, Event, event, event->int erfaceName() == EventNames::PresentationConnectionAvailableEvent, event.interfac eName() == EventNames::PresentationConnectionAvailableEvent);
52 47
53 } // namespace blink 48 } // namespace blink
54 49
55 #endif // PresentationConnectionAvailableEvent_h 50 #endif // PresentationConnectionAvailableEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698