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

Side by Side Diff: Source/bindings/core/v8/ScriptCallStackFactory.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 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 24 matching lines...) Expand all
35 #include "bindings/core/v8/V8Binding.h" 35 #include "bindings/core/v8/V8Binding.h"
36 #include "core/inspector/InspectorInstrumentation.h" 36 #include "core/inspector/InspectorInstrumentation.h"
37 #include "core/inspector/ScriptArguments.h" 37 #include "core/inspector/ScriptArguments.h"
38 #include "core/inspector/ScriptCallFrame.h" 38 #include "core/inspector/ScriptCallFrame.h"
39 #include "core/inspector/ScriptCallStack.h" 39 #include "core/inspector/ScriptCallStack.h"
40 #include "platform/JSONValues.h" 40 #include "platform/JSONValues.h"
41 #include "wtf/text/StringBuilder.h" 41 #include "wtf/text/StringBuilder.h"
42 42
43 #include <v8-debug.h> 43 #include <v8-debug.h>
44 44
45 namespace WebCore { 45 namespace blink {
46 46
47 class ExecutionContext; 47 class ExecutionContext;
48 48
49 static ScriptCallFrame toScriptCallFrame(v8::Handle<v8::StackFrame> frame) 49 static ScriptCallFrame toScriptCallFrame(v8::Handle<v8::StackFrame> frame)
50 { 50 {
51 StringBuilder stringBuilder; 51 StringBuilder stringBuilder;
52 stringBuilder.appendNumber(frame->GetScriptId()); 52 stringBuilder.appendNumber(frame->GetScriptId());
53 String scriptId = stringBuilder.toString(); 53 String scriptId = stringBuilder.toString();
54 String sourceName; 54 String sourceName;
55 v8::Local<v8::String> sourceNameValue(frame->GetScriptNameOrSourceURL()); 55 v8::Local<v8::String> sourceNameValue(frame->GetScriptNameOrSourceURL());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 PassRefPtrWillBeRawPtr<ScriptArguments> createScriptArguments(ScriptState* scrip tState, const v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipArg umentCount) 124 PassRefPtrWillBeRawPtr<ScriptArguments> createScriptArguments(ScriptState* scrip tState, const v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipArg umentCount)
125 { 125 {
126 Vector<ScriptValue> arguments; 126 Vector<ScriptValue> arguments;
127 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i) 127 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i)
128 arguments.append(ScriptValue(scriptState, v8arguments[i])); 128 arguments.append(ScriptValue(scriptState, v8arguments[i]));
129 129
130 return ScriptArguments::create(scriptState, arguments); 130 return ScriptArguments::create(scriptState, arguments);
131 } 131 }
132 132
133 } // namespace WebCore 133 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptCallStackFactory.h ('k') | Source/bindings/core/v8/ScriptController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698