Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |