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

Side by Side Diff: Source/modules/presentation/DefaultPresentationStartEvent.h

Issue 974993002: [Presentation API] Added the DefaultPresentationStart event and parsing of the default presentation… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replaced the unused forward declaration with the used one Created 5 years, 9 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 DefaultPresentationStartEvent_h
6 #define DefaultPresentationStartEvent_h
7
8 #include "modules/EventModules.h"
9 #include "modules/presentation/DefaultPresentationStartEventInit.h"
mlamouri (slow - plz ping) 2015/03/06 22:43:41 This can probably be a forward declaration.
whywhat 2015/03/10 13:00:44 Done.
10 #include "modules/presentation/PresentationSession.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 // Presentation API event to be fired when a presentation has been triggered
16 // by the embedder for the default presentation URL.
17 // See https://code.google.com/p/chromium/issues/detail?id=459001 for details.
mlamouri (slow - plz ping) 2015/03/06 22:43:41 I don't think you should point to bugs unless it's
Peter Beverloo 2015/03/09 19:05:28 +1, we should not point to bugs.
whywhat 2015/03/10 13:00:44 I believe there should be at least some pointer on
18 class DefaultPresentationStartEvent final : public Event {
19 DEFINE_WRAPPERTYPEINFO();
20 public:
21 virtual ~DefaultPresentationStartEvent();
22
23 static PassRefPtrWillBeRawPtr<DefaultPresentationStartEvent> create()
24 {
25 return adoptRefWillBeNoop(new DefaultPresentationStartEvent);
26 }
27 static PassRefPtrWillBeRawPtr<DefaultPresentationStartEvent> create(const At omicString& eventType, PresentationSession* session)
28 {
29 return adoptRefWillBeNoop(new DefaultPresentationStartEvent(eventType, s ession));
30 }
31 static PassRefPtrWillBeRawPtr<DefaultPresentationStartEvent> create(const At omicString& eventType, const DefaultPresentationStartEventInit& initializer)
32 {
33 return adoptRefWillBeNoop(new DefaultPresentationStartEvent(eventType, i nitializer));
34 }
35
36 PresentationSession* session() { return m_session.get(); }
37
38 virtual const AtomicString& interfaceName() const override;
39
40 private:
41 DefaultPresentationStartEvent();
42 DefaultPresentationStartEvent(const AtomicString& eventType, PresentationSes sion*);
43 DefaultPresentationStartEvent(const AtomicString& eventType, const DefaultPr esentationStartEventInit& initializer);
44
45 Persistent<PresentationSession> m_session;
46 };
47
48 DEFINE_TYPE_CASTS(DefaultPresentationStartEvent, Event, event, event->interfaceN ame() == EventNames::DefaultPresentationStartEvent, event.interfaceName() == Eve ntNames::DefaultPresentationStartEvent);
49
50 } // namespace blink
51
52 #endif // DefaultPresentationStartEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698