OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "public/platform/WebMediaConstraints.h" | 33 #include "public/platform/WebMediaConstraints.h" |
34 | 34 |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class WebMediaConstraintsPrivate FINAL : public RefCounted<WebMediaConstraintsPr
ivate> { | 40 class WebMediaConstraintsPrivate final : public RefCounted<WebMediaConstraintsPr
ivate> { |
41 public: | 41 public: |
42 static PassRefPtr<WebMediaConstraintsPrivate> create(); | 42 static PassRefPtr<WebMediaConstraintsPrivate> create(); |
43 static PassRefPtr<WebMediaConstraintsPrivate> create(const WebVector<WebMedi
aConstraint>& optional, const WebVector<WebMediaConstraint>& mandatory); | 43 static PassRefPtr<WebMediaConstraintsPrivate> create(const WebVector<WebMedi
aConstraint>& optional, const WebVector<WebMediaConstraint>& mandatory); |
44 | 44 |
45 void getOptionalConstraints(WebVector<WebMediaConstraint>&); | 45 void getOptionalConstraints(WebVector<WebMediaConstraint>&); |
46 void getMandatoryConstraints(WebVector<WebMediaConstraint>&); | 46 void getMandatoryConstraints(WebVector<WebMediaConstraint>&); |
47 bool getMandatoryConstraintValue(const WebString& name, WebString& value); | 47 bool getMandatoryConstraintValue(const WebString& name, WebString& value); |
48 bool getOptionalConstraintValue(const WebString& name, WebString& value); | 48 bool getOptionalConstraintValue(const WebString& name, WebString& value); |
49 | 49 |
50 private: | 50 private: |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 147 } |
148 | 148 |
149 void WebMediaConstraints::initialize(const WebVector<WebMediaConstraint>& option
al, const WebVector<WebMediaConstraint>& mandatory) | 149 void WebMediaConstraints::initialize(const WebVector<WebMediaConstraint>& option
al, const WebVector<WebMediaConstraint>& mandatory) |
150 { | 150 { |
151 ASSERT(isNull()); | 151 ASSERT(isNull()); |
152 m_private = WebMediaConstraintsPrivate::create(optional, mandatory); | 152 m_private = WebMediaConstraintsPrivate::create(optional, mandatory); |
153 } | 153 } |
154 | 154 |
155 } // namespace blink | 155 } // namespace blink |
156 | 156 |
OLD | NEW |