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

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

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: Made navigator.presentation an event target for onavailablechange (no implementation yet). Created 6 years, 5 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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698