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

Side by Side Diff: sky/engine/bindings/core/v8/ScriptPromise.cpp

Issue 726133002: Use root-relative V8 includes (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "bindings/core/v8/ScriptPromise.h" 32 #include "bindings/core/v8/ScriptPromise.h"
33 33
34 #include "bindings/core/v8/ExceptionMessages.h" 34 #include "bindings/core/v8/ExceptionMessages.h"
35 #include "bindings/core/v8/ExceptionState.h" 35 #include "bindings/core/v8/ExceptionState.h"
36 #include "bindings/core/v8/V8Binding.h" 36 #include "bindings/core/v8/V8Binding.h"
37 #include "bindings/core/v8/V8ThrowException.h" 37 #include "bindings/core/v8/V8ThrowException.h"
38 #include "core/dom/DOMException.h" 38 #include "core/dom/DOMException.h"
39 39 #include "v8/include/v8.h"
40 #include <v8.h>
41 40
42 namespace blink { 41 namespace blink {
43 42
44 namespace { 43 namespace {
45 44
46 struct WithScriptState { 45 struct WithScriptState {
47 // Used by ToV8Value<WithScriptState, ScriptState*>. 46 // Used by ToV8Value<WithScriptState, ScriptState*>.
48 static v8::Handle<v8::Object> getCreationContext(ScriptState* scriptState) 47 static v8::Handle<v8::Object> getCreationContext(ScriptState* scriptState)
49 { 48 {
50 return scriptState->context()->Global(); 49 return scriptState->context()->Global();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 { 168 {
170 if (value.IsEmpty()) 169 if (value.IsEmpty())
171 return v8::Local<v8::Promise>(); 170 return v8::Local<v8::Promise>();
172 v8::Local<v8::Promise::Resolver> resolver = v8::Promise::Resolver::New(isola te); 171 v8::Local<v8::Promise::Resolver> resolver = v8::Promise::Resolver::New(isola te);
173 v8::Local<v8::Promise> promise = resolver->GetPromise(); 172 v8::Local<v8::Promise> promise = resolver->GetPromise();
174 resolver->Reject(value); 173 resolver->Reject(value);
175 return promise; 174 return promise;
176 } 175 }
177 176
178 } // namespace blink 177 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptPromise.h ('k') | sky/engine/bindings/core/v8/ScriptPromisePropertyBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698