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

Side by Side Diff: Source/modules/presentation/Presentation.cpp

Issue 408663002: Add the Presentation API module and a single event target (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed Presentation to be ContextLifecycleObserver Created 6 years, 4 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 2014 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 #include "config.h"
6 #include "modules/presentation/Presentation.h"
7
8 #include "modules/EventTargetModules.h"
9
10 namespace blink {
11
12 Presentation::Presentation(ExecutionContext* executionContext)
13 : ContextLifecycleObserver(executionContext)
14 {
15 ScriptWrappable::init(this);
16 }
17
18 Presentation::~Presentation()
19 {
20 }
21
22 // static
23 Presentation* Presentation::create(ExecutionContext* executionContext)
24 {
25 return new Presentation(executionContext);
eseidel 2014/08/19 18:20:58 I guess we can kill all these create() functions i
whywhat 2014/08/20 16:40:42 Acknowledged.
26 }
27
28 bool Presentation::displayAvailable() const
29 {
30 return true;
31 }
32
33 const WTF::AtomicString& Presentation::interfaceName() const
34 {
35 return EventTargetNames::Presentation;
36 }
37
38 ExecutionContext* Presentation::executionContext() const
39 {
40 return ContextLifecycleObserver::executionContext();
41 }
42
43 void Presentation::trace(Visitor* visitor)
44 {
45 EventTargetWithInlineData::trace(visitor);
46 }
47
48 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698