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

Side by Side Diff: Source/modules/presentation/NavigatorPresentation.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: 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 NavigatorPresentation_h
6 #define NavigatorPresentation_h
7
8 #include "core/frame/DOMWindowProperty.h"
9 #include "modules/presentation/Presentation.h"
10 #include "platform/Supplementable.h"
11
12 namespace WebCore {
Peter Beverloo 2014/07/19 10:16:12 nit: s/WebCore/blink/ Elsewhere too, we switched
whywhat 2014/07/23 00:39:25 Done.
13
14 class Navigator;
15 class Presentation;
16
17 class NavigatorPresentation FINAL
18 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPresentation>
Peter Beverloo 2014/07/19 10:16:12 No need to use the Oilpan transitional types, you
whywhat 2014/07/23 00:39:26 It seems like I have to use WillBeHeapSupplement w
19 , public WillBeHeapSupplement<Navigator>
20 , public DOMWindowProperty {
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation);
22 public:
23 virtual ~NavigatorPresentation();
24
25 static NavigatorPresentation& from(Navigator&);
26 static Presentation* presentation(Navigator&);
27
28 Presentation* presentation() const;
Peter Beverloo 2014/07/19 10:16:12 You could also make this private since there are n
Peter Beverloo 2014/07/19 10:16:12 nit: This shouldn't be |const| since it can modify
whywhat 2014/07/23 00:39:25 Done.
whywhat 2014/07/23 00:39:26 Done.
29
30 void trace(Visitor*);
Peter Beverloo 2014/07/19 10:16:12 virtual void trace(Visitor*) OVERRIDE;
whywhat 2014/07/23 00:39:25 Done.
31
32 private:
33 static const char* supplementName();
34
35 NavigatorPresentation(LocalFrame*);
36
37 mutable PersistentWillBeMember<Presentation> m_presentation;
38 };
39
40 } // namespace WebCore
41
42 #endif // Presentation_h
Peter Beverloo 2014/07/19 10:16:12 nit: NavigatorPresentation_h
whywhat 2014/07/23 00:39:26 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698