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

Side by Side Diff: Source/bindings/core/v8/ScheduledAction.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
« no previous file with comments | « Source/bindings/core/v8/ScheduledAction.h ('k') | Source/bindings/core/v8/ScopedPersistent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. 2 * Copyright (C) 2007-2009 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 25 matching lines...) Expand all
36 #include "bindings/core/v8/V8Binding.h" 36 #include "bindings/core/v8/V8Binding.h"
37 #include "bindings/core/v8/V8GCController.h" 37 #include "bindings/core/v8/V8GCController.h"
38 #include "bindings/core/v8/V8ScriptRunner.h" 38 #include "bindings/core/v8/V8ScriptRunner.h"
39 #include "core/dom/Document.h" 39 #include "core/dom/Document.h"
40 #include "core/dom/ExecutionContext.h" 40 #include "core/dom/ExecutionContext.h"
41 #include "core/frame/LocalFrame.h" 41 #include "core/frame/LocalFrame.h"
42 #include "core/workers/WorkerGlobalScope.h" 42 #include "core/workers/WorkerGlobalScope.h"
43 #include "core/workers/WorkerThread.h" 43 #include "core/workers/WorkerThread.h"
44 #include "platform/TraceEvent.h" 44 #include "platform/TraceEvent.h"
45 45
46 namespace WebCore { 46 namespace blink {
47 47
48 ScheduledAction::ScheduledAction(ScriptState* scriptState, v8::Handle<v8::Functi on> function, int argc, v8::Handle<v8::Value> argv[], v8::Isolate* isolate) 48 ScheduledAction::ScheduledAction(ScriptState* scriptState, v8::Handle<v8::Functi on> function, int argc, v8::Handle<v8::Value> argv[], v8::Isolate* isolate)
49 : m_scriptState(scriptState) 49 : m_scriptState(scriptState)
50 , m_function(isolate, function) 50 , m_function(isolate, function)
51 , m_info(isolate) 51 , m_info(isolate)
52 , m_code(String(), KURL(), TextPosition::belowRangePosition()) 52 , m_code(String(), KURL(), TextPosition::belowRangePosition())
53 { 53 {
54 m_info.ReserveCapacity(argc); 54 m_info.ReserveCapacity(argc);
55 for (int i = 0; i < argc; ++i) 55 for (int i = 0; i < argc; ++i)
56 m_info.Append(argv[i]); 56 m_info.Append(argv[i]);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 } 114 }
115 115
116 void ScheduledAction::createLocalHandlesForArgs(Vector<v8::Handle<v8::Value> >* handles) 116 void ScheduledAction::createLocalHandlesForArgs(Vector<v8::Handle<v8::Value> >* handles)
117 { 117 {
118 handles->reserveCapacity(m_info.Size()); 118 handles->reserveCapacity(m_info.Size());
119 for (size_t i = 0; i < m_info.Size(); ++i) 119 for (size_t i = 0; i < m_info.Size(); ++i)
120 handles->append(m_info.Get(i)); 120 handles->append(m_info.Get(i));
121 } 121 }
122 122
123 } // namespace WebCore 123 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScheduledAction.h ('k') | Source/bindings/core/v8/ScopedPersistent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698