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

Side by Side Diff: Source/bindings/v8/custom/V8WindowCustom.cpp

Issue 141893007: Remove V8Utilities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2011 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 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 26 matching lines...) Expand all
37 #include "bindings/v8/ExceptionMessages.h" 37 #include "bindings/v8/ExceptionMessages.h"
38 #include "bindings/v8/ExceptionState.h" 38 #include "bindings/v8/ExceptionState.h"
39 #include "bindings/v8/ScheduledAction.h" 39 #include "bindings/v8/ScheduledAction.h"
40 #include "bindings/v8/ScriptController.h" 40 #include "bindings/v8/ScriptController.h"
41 #include "bindings/v8/ScriptSourceCode.h" 41 #include "bindings/v8/ScriptSourceCode.h"
42 #include "bindings/v8/SerializedScriptValue.h" 42 #include "bindings/v8/SerializedScriptValue.h"
43 #include "bindings/v8/V8Binding.h" 43 #include "bindings/v8/V8Binding.h"
44 #include "bindings/v8/V8EventListener.h" 44 #include "bindings/v8/V8EventListener.h"
45 #include "bindings/v8/V8EventListenerList.h" 45 #include "bindings/v8/V8EventListenerList.h"
46 #include "bindings/v8/V8GCForContextDispose.h" 46 #include "bindings/v8/V8GCForContextDispose.h"
47 #include "bindings/v8/V8Utilities.h"
48 #include "core/dom/ExceptionCode.h" 47 #include "core/dom/ExceptionCode.h"
49 #include "core/dom/MessagePort.h" 48 #include "core/dom/MessagePort.h"
50 #include "core/html/HTMLCollection.h" 49 #include "core/html/HTMLCollection.h"
51 #include "core/html/HTMLDocument.h" 50 #include "core/html/HTMLDocument.h"
52 #include "core/inspector/ScriptCallStack.h" 51 #include "core/inspector/ScriptCallStack.h"
53 #include "core/loader/FrameLoadRequest.h" 52 #include "core/loader/FrameLoadRequest.h"
54 #include "core/loader/FrameLoader.h" 53 #include "core/loader/FrameLoader.h"
55 #include "core/frame/ContentSecurityPolicy.h" 54 #include "core/frame/ContentSecurityPolicy.h"
56 #include "core/frame/DOMTimer.h" 55 #include "core/frame/DOMTimer.h"
57 #include "core/frame/DOMWindow.h" 56 #include "core/frame/DOMWindow.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // postMessage(message, {sequence of transferrables}, targetOrigin); 265 // postMessage(message, {sequence of transferrables}, targetOrigin);
267 MessagePortArray portArray; 266 MessagePortArray portArray;
268 ArrayBufferArray arrayBufferArray; 267 ArrayBufferArray arrayBufferArray;
269 int targetOriginArgIndex = 1; 268 int targetOriginArgIndex = 1;
270 if (info.Length() > 2) { 269 if (info.Length() > 2) {
271 int transferablesArgIndex = 2; 270 int transferablesArgIndex = 2;
272 if (isLegacyTargetOriginDesignation(info[2])) { 271 if (isLegacyTargetOriginDesignation(info[2])) {
273 targetOriginArgIndex = 2; 272 targetOriginArgIndex = 2;
274 transferablesArgIndex = 1; 273 transferablesArgIndex = 1;
275 } 274 }
276 if (!extractTransferables(info[transferablesArgIndex], transferablesArgI ndex, portArray, arrayBufferArray, exceptionState, info.GetIsolate())) { 275 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIn dex], transferablesArgIndex, portArray, arrayBufferArray, exceptionState, info.G etIsolate())) {
277 exceptionState.throwIfNeeded(); 276 exceptionState.throwIfNeeded();
278 return; 277 return;
279 } 278 }
280 } 279 }
281 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, targetOrigin, info[targetOriginArgIndex]); 280 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, targetOrigin, info[targetOriginArgIndex]);
282 281
283 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0 ], &portArray, &arrayBufferArray, exceptionState, info.GetIsolate()); 282 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0 ], &portArray, &arrayBufferArray, exceptionState, info.GetIsolate());
284 if (exceptionState.throwIfNeeded()) 283 if (exceptionState.throwIfNeeded())
285 return; 284 return;
286 285
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 v8::Handle<v8::Context> context = toV8Context(isolate, frame, DOMWrapperWorl d::current(isolate)); 490 v8::Handle<v8::Context> context = toV8Context(isolate, frame, DOMWrapperWorl d::current(isolate));
492 if (context.IsEmpty()) 491 if (context.IsEmpty())
493 return v8Undefined(); 492 return v8Undefined();
494 493
495 v8::Handle<v8::Object> global = context->Global(); 494 v8::Handle<v8::Object> global = context->Global();
496 ASSERT(!global.IsEmpty()); 495 ASSERT(!global.IsEmpty());
497 return global; 496 return global;
498 } 497 }
499 498
500 } // namespace WebCore 499 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8MutationObserverCustom.cpp ('k') | Source/bindings/v8/custom/V8WorkerCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698