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

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

Issue 1398103002: Oilpan: fix build after r353269. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Presentation_h 5 #ifndef Presentation_h
6 #define Presentation_h 6 #define Presentation_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/frame/DOMWindowProperty.h" 9 #include "core/frame/DOMWindowProperty.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/heap/Heap.h" 11 #include "platform/heap/Heap.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LocalFrame; 15 class LocalFrame;
16 class PresentationRequest; 16 class PresentationRequest;
17 17
18 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl 18 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl
19 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details . 19 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details .
20 //
21 // TODO(Oilpan): switch to GarbageCollected<Presentation> once object is uncondi tionally on the Oilpan heap.
20 class Presentation final 22 class Presentation final
21 : public GarbageCollectedFinalized<Presentation> 23 : public GarbageCollectedFinalized<Presentation>
22 , public ScriptWrappable 24 , public ScriptWrappable
23 , public DOMWindowProperty { 25 , public DOMWindowProperty {
24 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Presentation); 26 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Presentation);
25 DEFINE_WRAPPERTYPEINFO(); 27 DEFINE_WRAPPERTYPEINFO();
26 public: 28 public:
27 static Presentation* create(LocalFrame*); 29 static Presentation* create(LocalFrame*);
30 #if !ENABLE(OILPAN)
28 ~Presentation() override = default; 31 ~Presentation() override = default;
32 #endif
29 33
30 DECLARE_VIRTUAL_TRACE(); 34 DECLARE_VIRTUAL_TRACE();
31 35
32 PresentationRequest* defaultRequest() const; 36 PresentationRequest* defaultRequest() const;
33 void setDefaultRequest(PresentationRequest*); 37 void setDefaultRequest(PresentationRequest*);
34 38
35 private: 39 private:
36 explicit Presentation(LocalFrame*); 40 explicit Presentation(LocalFrame*);
37 41
38 // Default PresentationRequest used by the embedder. 42 // Default PresentationRequest used by the embedder.
39 Member<PresentationRequest> m_defaultRequest; 43 Member<PresentationRequest> m_defaultRequest;
40 }; 44 };
41 45
42 } // namespace blink 46 } // namespace blink
43 47
44 #endif // Presentation_h 48 #endif // Presentation_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698