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

Side by Side Diff: Source/web/WebScriptSource.cpp

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added deprecated label for not suspendable execute methods Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "public/web/WebScriptSource.h"
7
8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "wtf/text/TextPosition.h"
10
11 namespace blink {
12
13 WebScriptSource::operator ScriptSourceCode() const
14 {
15 TextPosition position(OrdinalNumber::fromOneBasedInt(startLine), OrdinalNumb er::first());
16 return ScriptSourceCode(code, url, position);
17 }
18
19 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698