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

Side by Side Diff: Source/bindings/v8/Dictionary.cpp

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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 | « Source/bindings/v8/Dictionary.h ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 return true; 642 return true;
643 643
644 if (!v8Value->IsArray()) { 644 if (!v8Value->IsArray()) {
645 context.throwTypeError(ExceptionMessages::notASequenceTypeProperty(key)) ; 645 context.throwTypeError(ExceptionMessages::notASequenceTypeProperty(key)) ;
646 return false; 646 return false;
647 } 647 }
648 648
649 return get(key, value); 649 return get(key, value);
650 } 650 }
651 651
652 bool Dictionary::get(const String& key, RefPtr<DOMError>& value) const 652 bool Dictionary::get(const String& key, RefPtrWillBeRawPtr<DOMError>& value) con st
653 { 653 {
654 v8::Local<v8::Value> v8Value; 654 v8::Local<v8::Value> v8Value;
655 if (!getKey(key, v8Value)) 655 if (!getKey(key, v8Value))
656 return false; 656 return false;
657 657
658 value = V8DOMError::toNativeWithTypeCheck(m_isolate, v8Value); 658 value = V8DOMError::toNativeWithTypeCheck(m_isolate, v8Value);
659 return true; 659 return true;
660 } 660 }
661 661
662 bool Dictionary::get(const String& key, OwnPtr<VoidCallback>& value) const 662 bool Dictionary::get(const String& key, OwnPtr<VoidCallback>& value) const
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 return *this; 741 return *this;
742 } 742 }
743 743
744 void Dictionary::ConversionContext::throwTypeError(const String& detail) 744 void Dictionary::ConversionContext::throwTypeError(const String& detail)
745 { 745 {
746 exceptionState().throwTypeError(detail); 746 exceptionState().throwTypeError(detail);
747 } 747 }
748 748
749 } // namespace WebCore 749 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/Dictionary.h ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698