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

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

Issue 2801823003: [Presentation API] Change connection to 'connected' if start a presentation with "https://www.googl… (Closed)
Patch Set: resolve code review comments from Derek Created 3 years, 8 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
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 NavigatorPresentation_h 5 #ifndef NavigatorPresentation_h
6 #define NavigatorPresentation_h 6 #define NavigatorPresentation_h
7 7
8 #include "core/frame/Navigator.h" 8 #include "core/frame/Navigator.h"
9 #include "modules/ModulesExport.h"
9 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
15 class Document;
14 class Navigator; 16 class Navigator;
15 class Presentation; 17 class Presentation;
16 18
17 class NavigatorPresentation final 19 class MODULES_EXPORT NavigatorPresentation final
mlamouri (slow - plz ping) 2017/04/10 12:50:28 Maybe just add MODULES_EXPORT on the method that n
zhaobin 2017/04/10 21:05:59 Done.
18 : public GarbageCollected<NavigatorPresentation>, 20 : public GarbageCollected<NavigatorPresentation>,
19 public Supplement<Navigator> { 21 public Supplement<Navigator> {
20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation); 22 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPresentation);
21 23
22 public: 24 public:
25 static NavigatorPresentation* from(Document&);
23 static NavigatorPresentation& from(Navigator&); 26 static NavigatorPresentation& from(Navigator&);
24 static Presentation* presentation(Navigator&); 27 static Presentation* presentation(Navigator&);
25 28
26 DECLARE_VIRTUAL_TRACE(); 29 DECLARE_VIRTUAL_TRACE();
27 30
28 private: 31 private:
29 NavigatorPresentation(); 32 NavigatorPresentation();
30 33
31 static const char* supplementName(); 34 static const char* supplementName();
32 Presentation* presentation(); 35 Presentation* presentation();
33 36
34 Member<Presentation> m_presentation; 37 Member<Presentation> m_presentation;
35 }; 38 };
36 39
37 } // namespace blink 40 } // namespace blink
38 41
39 #endif // NavigatorPresentation_h 42 #endif // NavigatorPresentation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698