OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 ASSERT(m_request || !m_blobInfo || !m_blobInfo->size()); | 385 ASSERT(m_request || !m_blobInfo || !m_blobInfo->size()); |
386 if (m_blobInfo.get() && m_blobInfo->size()) { | 386 if (m_blobInfo.get() && m_blobInfo->size()) { |
387 ASSERT(m_request); | 387 ASSERT(m_request); |
388 m_transaction->db()->ackReceivedBlobs(m_blobInfo.get()); | 388 m_transaction->db()->ackReceivedBlobs(m_blobInfo.get()); |
389 m_blobInfo.clear(); | 389 m_blobInfo.clear(); |
390 } | 390 } |
391 } | 391 } |
392 | 392 |
393 blink::WebIDBCursorDirection IDBCursor::stringToDirection(const String& directio
nString, ExceptionState& exceptionState) | 393 blink::WebIDBCursorDirection IDBCursor::stringToDirection(const String& directio
nString, ExceptionState& exceptionState) |
394 { | 394 { |
395 if (directionString.isNull() || directionString == IDBCursor::directionNext(
)) | 395 if (directionString == IDBCursor::directionNext()) |
396 return blink::WebIDBCursorDirectionNext; | 396 return blink::WebIDBCursorDirectionNext; |
397 if (directionString == IDBCursor::directionNextUnique()) | 397 if (directionString == IDBCursor::directionNextUnique()) |
398 return blink::WebIDBCursorDirectionNextNoDuplicate; | 398 return blink::WebIDBCursorDirectionNextNoDuplicate; |
399 if (directionString == IDBCursor::directionPrev()) | 399 if (directionString == IDBCursor::directionPrev()) |
400 return blink::WebIDBCursorDirectionPrev; | 400 return blink::WebIDBCursorDirectionPrev; |
401 if (directionString == IDBCursor::directionPrevUnique()) | 401 if (directionString == IDBCursor::directionPrevUnique()) |
402 return blink::WebIDBCursorDirectionPrevNoDuplicate; | 402 return blink::WebIDBCursorDirectionPrevNoDuplicate; |
403 | 403 |
404 exceptionState.throwTypeError("The direction provided ('" + directionString
+ "') is not one of 'next', 'nextunique', 'prev', or 'prevunique'."); | 404 exceptionState.throwTypeError("The direction provided ('" + directionString
+ "') is not one of 'next', 'nextunique', 'prev', or 'prevunique'."); |
405 return blink::WebIDBCursorDirectionNext; | 405 return blink::WebIDBCursorDirectionNext; |
(...skipping 14 matching lines...) Expand all Loading... |
420 case blink::WebIDBCursorDirectionPrevNoDuplicate: | 420 case blink::WebIDBCursorDirectionPrevNoDuplicate: |
421 return IDBCursor::directionPrevUnique(); | 421 return IDBCursor::directionPrevUnique(); |
422 | 422 |
423 default: | 423 default: |
424 ASSERT_NOT_REACHED(); | 424 ASSERT_NOT_REACHED(); |
425 return IDBCursor::directionNext(); | 425 return IDBCursor::directionNext(); |
426 } | 426 } |
427 } | 427 } |
428 | 428 |
429 } // namespace WebCore | 429 } // namespace WebCore |
OLD | NEW |