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

Side by Side Diff: Source/bindings/dart/DartController.cpp

Issue 48353003: Dartium support for Uri.base (native-side) (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009, Google Inc. 1 // Copyright (c) 2009, 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 bool forwardPrint = propLen > 0; 194 bool forwardPrint = propLen > 0;
195 #else 195 #else
196 bool forwardPrint = getenv("DART_FORWARDING_PRINT"); 196 bool forwardPrint = getenv("DART_FORWARDING_PRINT");
197 #endif 197 #endif
198 const char * const printClosure = forwardPrint ? 198 const char * const printClosure = forwardPrint ?
199 "_forwardingPrintClosure" : 199 "_forwardingPrintClosure" :
200 (isDOMEnabled ? "_printClosure" : "_pureIsolatePrintClosure"); 200 (isDOMEnabled ? "_printClosure" : "_pureIsolatePrintClosure");
201 copyValue(html, printClosure, "dart:_collection-dev", 0, "_printClosure"); 201 copyValue(html, printClosure, "dart:_collection-dev", 0, "_printClosure");
202 copyValue(html, isDOMEnabled ? "_timerFactoryClosure" : "_pureIsolateTimerFa ctoryClosure", "dart:async", "_TimerFactory", "_factory"); 202 copyValue(html, isDOMEnabled ? "_timerFactoryClosure" : "_pureIsolateTimerFa ctoryClosure", "dart:async", "_TimerFactory", "_factory");
203 copyValue(html, isDOMEnabled ? "_scheduleImmediateClosure" : "_pureIsolateSc heduleImmediateClosure", "dart:async", "_ScheduleImmediate", "_closure"); 203 copyValue(html, isDOMEnabled ? "_scheduleImmediateClosure" : "_pureIsolateSc heduleImmediateClosure", "dart:async", "_ScheduleImmediate", "_closure");
204 copyValue(html, isDOMEnabled ? "_uriBaseClosure" : "_pureIsolateUriBaseClosu re", "dart:core", 0, "_uriBaseClosure");
204 205
205 if (isDOMEnabled) { 206 if (isDOMEnabled) {
206 // Create strongly reachable document wrapper. Document wrapper acts as a 207 // Create strongly reachable document wrapper. Document wrapper acts as a
207 // retainer for in-document node wrappers group. There is no need to des troy 208 // retainer for in-document node wrappers group. There is no need to des troy
208 // this persistent handle explicitly because we will shutdown the isolat e on 209 // this persistent handle explicitly because we will shutdown the isolat e on
209 // navigation. 210 // navigation.
210 Dart_Handle localHandle = DartDocument::toDart(document); 211 Dart_Handle localHandle = DartDocument::toDart(document);
211 Dart_PersistentHandle strongHandle = Dart_NewPersistentHandle(localHandl e); 212 Dart_PersistentHandle strongHandle = Dart_NewPersistentHandle(localHandl e);
212 // We need a weak handle to always reachable object to temporary render 213 // We need a weak handle to always reachable object to temporary render
213 // so weak handles strong, see the corresponding logic in 214 // so weak handles strong, see the corresponding logic in
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 Dart_Handle libraryIdHandle = Dart_ListGetAt(libraryIdList, i); 978 Dart_Handle libraryIdHandle = Dart_ListGetAt(libraryIdList, i);
978 Dart_Handle exception = 0; 979 Dart_Handle exception = 0;
979 intptr_t libraryId = DartUtilities::toInteger(libraryIdHandle, exception ); 980 intptr_t libraryId = DartUtilities::toInteger(libraryIdHandle, exception );
980 ASSERT(!exception); 981 ASSERT(!exception);
981 DartScriptState* scriptState = lookupScriptStateFromLibraryIdMap(isolate , v8Context, libraryIdMap, libraryId); 982 DartScriptState* scriptState = lookupScriptStateFromLibraryIdMap(isolate , v8Context, libraryIdMap, libraryId);
982 result.append(scriptState); 983 result.append(scriptState);
983 } 984 }
984 } 985 }
985 986
986 } 987 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698