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

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: PTAL 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 25 matching lines...) Expand all
36 36
37 #include "DartWebkitClassIds.h" 37 #include "DartWebkitClassIds.h"
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 "bindings/v8/V8ScriptState.h"
46 #include "core/dom/DOMStringList.h" 47 #include "core/dom/DOMStringList.h"
47 #include "core/dom/MessagePort.h" 48 #include "core/dom/MessagePort.h"
49 #include "core/inspector/ScriptCallFrame.h"
48 #include "modules/mediastream/MediaStreamTrack.h" 50 #include "modules/mediastream/MediaStreamTrack.h"
49 51
50 #include "wtf/ArrayBufferView.h" 52 #include "wtf/ArrayBufferView.h"
51 #include "wtf/HashMap.h" 53 #include "wtf/HashMap.h"
52 #include "wtf/ListHashSet.h" 54 #include "wtf/ListHashSet.h"
53 #include "wtf/Uint8Array.h" 55 #include "wtf/Uint8Array.h"
54 #include "wtf/text/WTFString.h" 56 #include "wtf/text/WTFString.h"
55 #include <dart_api.h> 57 #include <dart_api.h>
56 58
57 namespace WTF { 59 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. 214 // FIXME: Add check to enforce this is the right window.
213 return domWindowForCurrentIsolate(); 215 return domWindowForCurrentIsolate();
214 } 216 }
215 217
216 static DOMWindow* callingDomWindowForCurrentIsolate() 218 static DOMWindow* callingDomWindowForCurrentIsolate()
217 { 219 {
218 // FIXME: Add check to enforce this is the right window. 220 // FIXME: Add check to enforce this is the right window.
219 return domWindowForCurrentIsolate(); 221 return domWindowForCurrentIsolate();
220 } 222 }
221 223
224 static V8ScriptState* v8ScriptStateForCurrentIsolate();
225
222 static ExecutionContext* scriptExecutionContext(); 226 static ExecutionContext* scriptExecutionContext();
223 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo id TLS. 227 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo id TLS.
224 static DartScriptState* currentScriptState(); 228 static DartScriptState* currentScriptState();
225 229
226 static bool processingUserGesture(); 230 static bool processingUserGesture();
227 231
228 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception); 232 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception);
229 233
230 static PassRefPtr<ScriptCallStack> createScriptCallStack(); 234 static PassRefPtr<ScriptCallStack> createScriptCallStack();
235 static ScriptCallFrame getTopFrame(Dart_StackTrace, Dart_Handle& exception);
236 static ScriptCallFrame toScriptCallFrame(Dart_ActivationFrame, Dart_Handle& exception);
231 237
232 static const uint8_t* fullSnapshot(LocalFrame*); 238 static const uint8_t* fullSnapshot(LocalFrame*);
233 239
234 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url); 240 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url);
235 241
236 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0); 242 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0);
237 static void reportProblem(ExecutionContext*, Dart_Handle); 243 static void reportProblem(ExecutionContext*, Dart_Handle);
238 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL); 244 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL);
239 245
240 static Dart_Handle invalidNumberOfArgumentsException() 246 static Dart_Handle invalidNumberOfArgumentsException()
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 timerStop = currentTimeMS(); \ 744 timerStop = currentTimeMS(); \
739 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart)); 745 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart));
740 #else 746 #else
741 #define DART_START_TIMER() 747 #define DART_START_TIMER()
742 #define DART_RECORD_TIMER(msg) 748 #define DART_RECORD_TIMER(msg)
743 #endif 749 #endif
744 750
745 } // namespace WebCore 751 } // namespace WebCore
746 752
747 #endif // DartUtilities_h 753 #endif // DartUtilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698