Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: Source/modules/indexeddb/IDBCursor.cpp

Issue 332613004: Use IDL argument default values in modules/indexeddb/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBDatabase.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBDatabase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698