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 #ifndef Presentation_h | |
| 6 #define Presentation_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "core/events/EventTarget.h" | |
| 10 #include "core/frame/DOMWindowProperty.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class Presentation FINAL | |
| 15 : public GarbageCollectedFinalized<Presentation> | |
| 16 , public EventTargetWithInlineData | |
| 17 , DOMWindowProperty { | |
|
Peter Beverloo
2014/07/25 18:01:18
This shouldn't be a DOMWindowProperty, definitely
whywhat
2014/08/19 18:07:35
Done.
| |
| 18 DEFINE_EVENT_TARGET_REFCOUNTING(EventTargetWithInlineData); | |
| 19 public: | |
| 20 static Presentation* create(LocalFrame*); | |
| 21 virtual ~Presentation(); | |
| 22 | |
| 23 // EventTarget implementation. | |
| 24 virtual const WTF::AtomicString& interfaceName() const OVERRIDE; | |
| 25 virtual ExecutionContext* executionContext() const OVERRIDE; | |
| 26 | |
| 27 virtual void trace(Visitor*) OVERRIDE; | |
| 28 | |
| 29 bool displayAvailable() const; | |
| 30 | |
| 31 DEFINE_ATTRIBUTE_EVENT_LISTENER(availablechange); | |
| 32 | |
| 33 private: | |
| 34 explicit Presentation(LocalFrame*); | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // Presentation_h | |
| OLD | NEW |