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

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
« no previous file with comments | « Source/bindings/dart/DartScriptDebugServer.cpp ('k') | Source/bindings/dart/DartUtilities.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
58 #include <dart_debugger_api.h>
56 59
57 namespace WTF { 60 namespace WTF {
58 class ArrayBuffer; 61 class ArrayBuffer;
59 class Uint8ClampedArray; 62 class Uint8ClampedArray;
60 } 63 }
61 64
62 namespace WebCore { 65 namespace WebCore {
63 66
64 class Dictionary; 67 class Dictionary;
65 class Frame; 68 class Frame;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // FIXME: Add check to enforce this is the right window. 215 // FIXME: Add check to enforce this is the right window.
213 return domWindowForCurrentIsolate(); 216 return domWindowForCurrentIsolate();
214 } 217 }
215 218
216 static DOMWindow* callingDomWindowForCurrentIsolate() 219 static DOMWindow* callingDomWindowForCurrentIsolate()
217 { 220 {
218 // FIXME: Add check to enforce this is the right window. 221 // FIXME: Add check to enforce this is the right window.
219 return domWindowForCurrentIsolate(); 222 return domWindowForCurrentIsolate();
220 } 223 }
221 224
225 static V8ScriptState* v8ScriptStateForCurrentIsolate();
226
222 static ExecutionContext* scriptExecutionContext(); 227 static ExecutionContext* scriptExecutionContext();
223 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo id TLS. 228 // FIXMEDART: Should have a variant that takes a Dart_NativeArguments to avo id TLS.
224 static DartScriptState* currentScriptState(); 229 static DartScriptState* currentScriptState();
225 230
226 static bool processingUserGesture(); 231 static bool processingUserGesture();
227 232
228 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception); 233 static PassRefPtr<ScriptArguments> createScriptArguments(Dart_Handle argumen t, Dart_Handle& exception);
229 234
230 static PassRefPtr<ScriptCallStack> createScriptCallStack(); 235 static PassRefPtr<ScriptCallStack> createScriptCallStack();
236 static ScriptCallFrame getTopFrame(Dart_StackTrace, Dart_Handle& exception);
237 static ScriptCallFrame toScriptCallFrame(Dart_ActivationFrame, Dart_Handle& exception);
231 238
232 static const uint8_t* fullSnapshot(LocalFrame*); 239 static const uint8_t* fullSnapshot(LocalFrame*);
233 240
234 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url); 241 static Dart_Handle canonicalizeUrl(Dart_Handle library, Dart_Handle urlHandl e, String url);
235 242
236 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0); 243 static void reportProblem(ExecutionContext*, const String&, int line = 0, in t col = 0);
237 static void reportProblem(ExecutionContext*, Dart_Handle); 244 static void reportProblem(ExecutionContext*, Dart_Handle);
238 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL); 245 static void reportProblem(ExecutionContext*, Dart_Handle, const String& sour ceURL);
239 246
240 static Dart_Handle invalidNumberOfArgumentsException() 247 static Dart_Handle invalidNumberOfArgumentsException()
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 timerStop = currentTimeMS(); \ 745 timerStop = currentTimeMS(); \
739 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart)); 746 fprintf(stdout, "%s %.3f ms\n", msg, (timerStop - timerStart));
740 #else 747 #else
741 #define DART_START_TIMER() 748 #define DART_START_TIMER()
742 #define DART_RECORD_TIMER(msg) 749 #define DART_RECORD_TIMER(msg)
743 #endif 750 #endif
744 751
745 } // namespace WebCore 752 } // namespace WebCore
746 753
747 #endif // DartUtilities_h 754 #endif // DartUtilities_h
OLDNEW
« no previous file with comments | « Source/bindings/dart/DartScriptDebugServer.cpp ('k') | Source/bindings/dart/DartUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698