| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 return false; | 179 return false; |
| 180 } | 180 } |
| 181 return true; | 181 return true; |
| 182 } | 182 } |
| 183 | 183 |
| 184 bool LongConstraint::isEmpty() const | 184 bool LongConstraint::isEmpty() const |
| 185 { | 185 { |
| 186 return !m_hasMin && !m_hasMax && !m_hasExact && !m_hasIdeal; | 186 return !m_hasMin && !m_hasMax && !m_hasExact && !m_hasIdeal; |
| 187 } | 187 } |
| 188 | 188 |
| 189 double DoubleConstraint::kConstraintEpsilon = 0.00001; | 189 const double DoubleConstraint::kConstraintEpsilon = 0.00001; |
| 190 | 190 |
| 191 DoubleConstraint::DoubleConstraint(const char* name) | 191 DoubleConstraint::DoubleConstraint(const char* name) |
| 192 : BaseConstraint(name) | 192 : BaseConstraint(name) |
| 193 , m_min() | 193 , m_min() |
| 194 , m_max() | 194 , m_max() |
| 195 , m_exact() | 195 , m_exact() |
| 196 , m_ideal() | 196 , m_ideal() |
| 197 , m_hasMin(false) | 197 , m_hasMin(false) |
| 198 , m_hasMax(false) | 198 , m_hasMax(false) |
| 199 , m_hasExact(false) | 199 , m_hasExact(false) |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 return m_private->basic(); | 417 return m_private->basic(); |
| 418 } | 418 } |
| 419 | 419 |
| 420 const WebVector<WebMediaTrackConstraintSet>& WebMediaConstraints::advanced() con
st | 420 const WebVector<WebMediaTrackConstraintSet>& WebMediaConstraints::advanced() con
st |
| 421 { | 421 { |
| 422 ASSERT(!isNull()); | 422 ASSERT(!isNull()); |
| 423 return m_private->advanced(); | 423 return m_private->advanced(); |
| 424 } | 424 } |
| 425 | 425 |
| 426 } // namespace blink | 426 } // namespace blink |
| OLD | NEW |