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

Side by Side Diff: Source/bindings/dart/DartUtilities.h

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
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 | 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 27 matching lines...) Expand all
38 38
39 #include "bindings/common/Dictionary.h" 39 #include "bindings/common/Dictionary.h"
40 #include "bindings/dart/DartDOMData.h" 40 #include "bindings/dart/DartDOMData.h"
41 #include "bindings/dart/DartScriptValue.h" 41 #include "bindings/dart/DartScriptValue.h"
42 #include "bindings/dart/DartStringCache.h" 42 #include "bindings/dart/DartStringCache.h"
43 #include "bindings/v8/ScriptPromise.h" 43 #include "bindings/v8/ScriptPromise.h"
44 #include "bindings/v8/SerializedScriptValue.h" 44 #include "bindings/v8/SerializedScriptValue.h"
45 #include "bindings/v8/V8RecursionScope.h" 45 #include "bindings/v8/V8RecursionScope.h"
46 #include "core/dom/DOMStringList.h" 46 #include "core/dom/DOMStringList.h"
47 #include "core/dom/MessagePort.h" 47 #include "core/dom/MessagePort.h"
48 #include "core/inspector/ScriptCallFrame.h"
48 #include "modules/mediastream/MediaStreamTrack.h" 49 #include "modules/mediastream/MediaStreamTrack.h"
49 50
50 #include "wtf/ArrayBufferView.h" 51 #include "wtf/ArrayBufferView.h"
51 #include "wtf/HashMap.h" 52 #include "wtf/HashMap.h"
52 #include "wtf/ListHashSet.h" 53 #include "wtf/ListHashSet.h"
53 #include "wtf/Uint8Array.h" 54 #include "wtf/Uint8Array.h"
54 #include "wtf/text/WTFString.h" 55 #include "wtf/text/WTFString.h"
55 #include <dart_api.h> 56 #include <dart_api.h>
56 57
57 namespace WTF { 58 namespace WTF {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // FIXME: Add check to enforce this is the right window. 213 // FIXME: Add check to enforce this is the right window.
213 return domWindowForCurrentIsolate(); 214 return domWindowForCurrentIsolate();
214 } 215 }
215 216
216 static DOMWindow* callingDomWindowForCurrentIsolate() 217 static DOMWindow* callingDomWindowForCurrentIsolate()
217 { 218 {
218 // FIXME: Add check to enforce this is the right window. 219 // FIXME: Add check to enforce this is the right window.
219 return domWindowForCurrentIsolate(); 220 return domWindowForCurrentIsolate();
220 } 221 }
221 222
223 static ScriptState* v8ScriptStateForCurrentIsolate();
rmacnak 2014/06/03 17:32:34 V8ScriptState
Jacob 2014/06/03 20:23:13 Done.
224
222 static ExecutionContext* scriptExecutionContext(); 225 static ExecutionContext* scriptExecutionContext();
223 static DartScriptState* currentScriptState(); 226 static DartScriptState* currentScriptState();
224 227
225 static bool processingUserGesture(); 228 static bool processingUserGesture();
226 229
227 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception); 230 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception);
228 231
229 static PassRefPtr<ScriptCallStack> createScriptCallStack(); 232 static PassRefPtr<ScriptCallStack> createScriptCallStack();
233 static ScriptCallFrame getTopFrame(Dart_StackTrace, Dart_Handle& exception);
234 static ScriptCallFrame toScriptCallFrame(Dart_ActivationFrame, Dart_Handle& exception);
230 235
231 static const uint8_t* fullSnapshot(LocalFrame*); 236 static const uint8_t* fullSnapshot(LocalFrame*);
232 237
233 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url); 238 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url);
234 239
235 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0); 240 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0);
236 static void reportProblem(ExecutionContext*, Dart_Handle); 241 static void reportProblem(ExecutionContext*, Dart_Handle);
237 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL); 242 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL);
238 243
239 static Dart_Handle invalidNumberOfArgumentsException() 244 static Dart_Handle invalidNumberOfArgumentsException()
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 timerStop = currentTimeMS(); \ 742 timerStop = currentTimeMS(); \
738 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart)); 743 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart));
739 #else 744 #else
740 #define DART_START_TIMER() 745 #define DART_START_TIMER()
741 #define DART_RECORD_TIMER(msg) 746 #define DART_RECORD_TIMER(msg)
742 #endif 747 #endif
743 748
744 } // namespace WebCore 749 } // namespace WebCore
745 750
746 #endif // DartUtilities_h 751 #endif // DartUtilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698