| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void setExact(const WebString& exact) { m_exact.assign(&exact, 1); } | 166 void setExact(const WebString& exact) { m_exact.assign(&exact, 1); } |
| 167 | 167 |
| 168 void setExact(const WebVector<WebString>& exact) { m_exact.assign(exact); } | 168 void setExact(const WebVector<WebString>& exact) { m_exact.assign(exact); } |
| 169 | 169 |
| 170 void setIdeal(const WebVector<WebString>& ideal) { m_ideal.assign(ideal); } | 170 void setIdeal(const WebVector<WebString>& ideal) { m_ideal.assign(ideal); } |
| 171 | 171 |
| 172 bool matches(WebString value) const; | 172 bool matches(WebString value) const; |
| 173 bool isEmpty() const override; | 173 bool isEmpty() const override; |
| 174 bool hasMandatory() const override; | 174 bool hasMandatory() const override; |
| 175 WebString toString() const override; | 175 WebString toString() const override; |
| 176 bool hasExact() const { return !m_exact.isEmpty(); } | 176 bool hasExact() const { return !m_exact.empty(); } |
| 177 bool hasIdeal() const { return !m_ideal.isEmpty(); } | 177 bool hasIdeal() const { return !m_ideal.empty(); } |
| 178 const WebVector<WebString>& exact() const; | 178 const WebVector<WebString>& exact() const; |
| 179 const WebVector<WebString>& ideal() const; | 179 const WebVector<WebString>& ideal() const; |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 WebVector<WebString> m_exact; | 182 WebVector<WebString> m_exact; |
| 183 WebVector<WebString> m_ideal; | 183 WebVector<WebString> m_ideal; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 class BLINK_PLATFORM_EXPORT BooleanConstraint : public BaseConstraint { | 186 class BLINK_PLATFORM_EXPORT BooleanConstraint : public BaseConstraint { |
| 187 public: | 187 public: |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 BLINK_PLATFORM_EXPORT const WebString toString() const; | 319 BLINK_PLATFORM_EXPORT const WebString toString() const; |
| 320 | 320 |
| 321 private: | 321 private: |
| 322 WebPrivatePtr<WebMediaConstraintsPrivate> m_private; | 322 WebPrivatePtr<WebMediaConstraintsPrivate> m_private; |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 } // namespace blink | 325 } // namespace blink |
| 326 | 326 |
| 327 #endif // WebMediaConstraints_h | 327 #endif // WebMediaConstraints_h |
| OLD | NEW |