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

Side by Side Diff: third_party/WebKit/Source/modules/mediacapabilities/NavigatorMediaCapabilities.h

Issue 2685863004: Media Capabilities: stub implementation of mediaCapabilities.query(). (Closed)
Patch Set: rebase Created 3 years, 10 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 2017 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 NavigatorMediaCapabilities_h
6 #define NavigatorMediaCapabilities_h
7
8 #include "core/frame/Navigator.h"
9 #include "platform/Supplementable.h"
10
11 namespace blink {
12
13 class MediaCapabilities;
14 class Navigator;
15
16 // Provides MediaCapabilities as a supplement of Navigator as an attribute.
17 class NavigatorMediaCapabilities final
18 : public GarbageCollected<NavigatorMediaCapabilities>,
19 public Supplement<Navigator> {
20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaCapabilities);
21
22 public:
23 static MediaCapabilities* mediaCapabilities(Navigator&);
24
25 DECLARE_TRACE();
26
27 private:
28 explicit NavigatorMediaCapabilities(Navigator&);
29
30 static NavigatorMediaCapabilities& from(Navigator&);
31 static const char* supplementName();
32
33 // The MediaCapabilities instance of this Navigator.
34 Member<MediaCapabilities> m_capabilities;
35 };
36
37 } // namespace blink
38
39 #endif // NavigatorMediaCapabilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698