| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 break; | 132 break; |
| 133 case IDBKey::DateType: | 133 case IDBKey::DateType: |
| 134 keys[i] = WebIDBKey::createDate(key->date()); | 134 keys[i] = WebIDBKey::createDate(key->date()); |
| 135 break; | 135 break; |
| 136 case IDBKey::NumberType: | 136 case IDBKey::NumberType: |
| 137 keys[i] = WebIDBKey::createNumber(key->number()); | 137 keys[i] = WebIDBKey::createNumber(key->number()); |
| 138 break; | 138 break; |
| 139 case IDBKey::InvalidType: | 139 case IDBKey::InvalidType: |
| 140 keys[i] = WebIDBKey::createInvalid(); | 140 keys[i] = WebIDBKey::createInvalid(); |
| 141 break; | 141 break; |
| 142 case IDBKey::MinType: | 142 case IDBKey::TypeEnumMax: |
| 143 NOTREACHED(); | 143 NOTREACHED(); |
| 144 break; | 144 break; |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 result.swap(keys); | 147 result.swap(keys); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void WebIDBKey::assignArray(const WebVector<WebIDBKey>& array) { | 150 void WebIDBKey::assignArray(const WebVector<WebIDBKey>& array) { |
| 151 m_private = convertFromWebIDBKeyArray(array); | 151 m_private = convertFromWebIDBKeyArray(array); |
| 152 } | 152 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 double WebIDBKey::date() const { | 204 double WebIDBKey::date() const { |
| 205 return m_private->date(); | 205 return m_private->date(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 double WebIDBKey::number() const { | 208 double WebIDBKey::number() const { |
| 209 return m_private->number(); | 209 return m_private->number(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |