Index: Source/modules/presentation/Presentation.cpp |
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1c141efc0b42a04e5fc66f75118deae30631cec4 |
--- /dev/null |
+++ b/Source/modules/presentation/Presentation.cpp |
@@ -0,0 +1,52 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "modules/presentation/Presentation.h" |
+ |
+#include "core/dom/Document.h" |
+#include "core/frame/LocalFrame.h" |
+#include "modules/EventTargetModules.h" |
+ |
+namespace blink { |
+ |
+Presentation::Presentation(LocalFrame* frame) |
+ : DOMWindowProperty(frame) |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+Presentation::~Presentation() |
+{ |
+} |
+ |
+// static |
+Presentation* Presentation::create(LocalFrame* frame) |
+{ |
+ return new Presentation(frame); |
+} |
+ |
+bool Presentation::displayAvailable() const |
+{ |
+ return true; |
+} |
+ |
+const WTF::AtomicString& Presentation::interfaceName() const |
+{ |
+ return EventTargetNames::Presentation; |
+} |
+ |
+ExecutionContext* Presentation::executionContext() const |
+{ |
+ if (!frame()) |
+ return 0; |
+ return frame()->document(); |
+} |
+ |
+void Presentation::trace(Visitor* visitor) |
+{ |
+ EventTargetWithInlineData::trace(visitor); |
+} |
+ |
+} // namespace blink |