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

Side by Side Diff: Source/WebCore/bindings/dart/custom/DartXMLHttpRequestCustom.cpp

Issue 9288026: Switch to using dartdomgenerator.py for Dart interface and implementation generation. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011, Google Inc. 1 // Copyright 2011, Google Inc.
2 // All rights reserved. 2 // 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DartApiScope dartApiScope; 46 DartApiScope dartApiScope;
47 Dart_Handle exception; 47 Dart_Handle exception;
48 { 48 {
49 ScriptExecutionContext* context = DartUtilities::scriptExecutionContext( ); 49 ScriptExecutionContext* context = DartUtilities::scriptExecutionContext( );
50 if (!context) { 50 if (!context) {
51 exception = Dart_NewString("XMLHttpRequest constructor's associated context is not available"); 51 exception = Dart_NewString("XMLHttpRequest constructor's associated context is not available");
52 goto fail; 52 goto fail;
53 } 53 }
54 54
55 RefPtr<XMLHttpRequest> xmlHttpRequest = XMLHttpRequest::create(context); 55 RefPtr<XMLHttpRequest> xmlHttpRequest = XMLHttpRequest::create(context);
56 DartDOMWrapper::bindDOMObjectToDartWrapper(xmlHttpRequest.get(), Dart_Ge tNativeArgument(args, 0)); 56 DartDOMWrapper::returnValue(args, xmlHttpRequest.get());
57 return; 57 return;
58 } 58 }
59 59
60 fail: 60 fail:
61 Dart_ThrowException(exception); 61 Dart_ThrowException(exception);
62 ASSERT_NOT_REACHED(); 62 ASSERT_NOT_REACHED();
63 } 63 }
64 64
65 void openCallback(Dart_NativeArguments args) 65 void openCallback(Dart_NativeArguments args)
66 { 66 {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 void responseGetter(Dart_NativeArguments args) 180 void responseGetter(Dart_NativeArguments args)
181 { 181 {
182 // FIXME: implement. 182 // FIXME: implement.
183 DART_UNIMPLEMENTED(); 183 DART_UNIMPLEMENTED();
184 } 184 }
185 185
186 } // DartXMLHttpRequestInternal 186 } // DartXMLHttpRequestInternal
187 187
188 } // WebCore 188 } // WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698