| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 { | 66 { |
| 67 assign(other); | 67 assign(other); |
| 68 return *this; | 68 return *this; |
| 69 } | 69 } |
| 70 | 70 |
| 71 BLINK_PLATFORM_EXPORT void assign(const WebMediaConstraints&); | 71 BLINK_PLATFORM_EXPORT void assign(const WebMediaConstraints&); |
| 72 | 72 |
| 73 BLINK_PLATFORM_EXPORT void reset(); | 73 BLINK_PLATFORM_EXPORT void reset(); |
| 74 bool isNull() const { return m_private.isNull(); } | 74 bool isNull() const { return m_private.isNull(); } |
| 75 | 75 |
| 76 BLINK_PLATFORM_EXPORT bool isEmpty() const; |
| 76 BLINK_PLATFORM_EXPORT void getOptionalConstraints(WebVector<WebMediaConstrai
nt>&) const; | 77 BLINK_PLATFORM_EXPORT void getOptionalConstraints(WebVector<WebMediaConstrai
nt>&) const; |
| 77 BLINK_PLATFORM_EXPORT void getMandatoryConstraints(WebVector<WebMediaConstra
int>&) const; | 78 BLINK_PLATFORM_EXPORT void getMandatoryConstraints(WebVector<WebMediaConstra
int>&) const; |
| 78 | 79 |
| 79 BLINK_PLATFORM_EXPORT bool getOptionalConstraintValue(const WebString& name,
WebString& value) const; | 80 BLINK_PLATFORM_EXPORT bool getOptionalConstraintValue(const WebString& name,
WebString& value) const; |
| 80 BLINK_PLATFORM_EXPORT bool getMandatoryConstraintValue(const WebString& name
, WebString& value) const; | 81 BLINK_PLATFORM_EXPORT bool getMandatoryConstraintValue(const WebString& name
, WebString& value) const; |
| 81 | 82 |
| 82 BLINK_PLATFORM_EXPORT void initialize(); | 83 BLINK_PLATFORM_EXPORT void initialize(); |
| 83 BLINK_PLATFORM_EXPORT void initialize(const WebVector<WebMediaConstraint>& o
ptional, const WebVector<WebMediaConstraint>& mandatory); | 84 BLINK_PLATFORM_EXPORT void initialize(const WebVector<WebMediaConstraint>& o
ptional, const WebVector<WebMediaConstraint>& mandatory); |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 WebPrivatePtr<WebMediaConstraintsPrivate> m_private; | 87 WebPrivatePtr<WebMediaConstraintsPrivate> m_private; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace blink | 90 } // namespace blink |
| 90 | 91 |
| 91 #endif // WebMediaConstraints_h | 92 #endif // WebMediaConstraints_h |
| OLD | NEW |