OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "public/platform/WebMediaDeviceInfo.h" | 28 #include "public/platform/WebMediaDeviceInfo.h" |
29 | 29 |
30 #include "public/platform/WebString.h" | 30 #include "public/platform/WebString.h" |
31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
32 #include "wtf/RefCounted.h" | 32 #include "wtf/RefCounted.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class WebMediaDeviceInfoPrivate FINAL : public RefCounted<WebMediaDeviceInfoPriv
ate> { | 36 class WebMediaDeviceInfoPrivate final : public RefCounted<WebMediaDeviceInfoPriv
ate> { |
37 public: | 37 public: |
38 static PassRefPtr<WebMediaDeviceInfoPrivate> create(const WebString& deviceI
d, WebMediaDeviceInfo::MediaDeviceKind, const WebString& label, const WebString&
groupId); | 38 static PassRefPtr<WebMediaDeviceInfoPrivate> create(const WebString& deviceI
d, WebMediaDeviceInfo::MediaDeviceKind, const WebString& label, const WebString&
groupId); |
39 | 39 |
40 const WebString& deviceId() const { return m_deviceId; } | 40 const WebString& deviceId() const { return m_deviceId; } |
41 WebMediaDeviceInfo::MediaDeviceKind kind() const { return m_kind; } | 41 WebMediaDeviceInfo::MediaDeviceKind kind() const { return m_kind; } |
42 const WebString& label() const { return m_label; } | 42 const WebString& label() const { return m_label; } |
43 const WebString& groupId() const { return m_groupId; } | 43 const WebString& groupId() const { return m_groupId; } |
44 | 44 |
45 private: | 45 private: |
46 WebMediaDeviceInfoPrivate(const WebString& deviceId, WebMediaDeviceInfo::Med
iaDeviceKind, const WebString& label, const WebString& groupId); | 46 WebMediaDeviceInfoPrivate(const WebString& deviceId, WebMediaDeviceInfo::Med
iaDeviceKind, const WebString& label, const WebString& groupId); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 WebString WebMediaDeviceInfo::groupId() const | 100 WebString WebMediaDeviceInfo::groupId() const |
101 { | 101 { |
102 ASSERT(!m_private.isNull()); | 102 ASSERT(!m_private.isNull()); |
103 return m_private->groupId(); | 103 return m_private->groupId(); |
104 } | 104 } |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
OLD | NEW |