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

Side by Side Diff: xfa/fxjse/util_inline.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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
« no previous file with comments | « xfa/fxjse/scope_inline.h ('k') | xfa/fxjse/value.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 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_SRC_FXJSE_UTIL_INLINE_H_ 7 #ifndef XFA_FXJSE_UTIL_INLINE_H_
8 #define XFA_SRC_FXJSE_UTIL_INLINE_H_ 8 #define XFA_FXJSE_UTIL_INLINE_H_
9 9
10 #include "xfa/src/fxjse/context.h" 10 #include "xfa/fxjse/context.h"
11 11
12 static V8_INLINE v8::Local<v8::Object> FXJSE_GetGlobalObjectFromContext( 12 static V8_INLINE v8::Local<v8::Object> FXJSE_GetGlobalObjectFromContext(
13 const v8::Local<v8::Context>& hContext) { 13 const v8::Local<v8::Context>& hContext) {
14 return hContext->Global()->GetPrototype().As<v8::Object>(); 14 return hContext->Global()->GetPrototype().As<v8::Object>();
15 } 15 }
16 static V8_INLINE void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject, 16 static V8_INLINE void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject,
17 void* lpNewBinding) { 17 void* lpNewBinding) {
18 ASSERT(!hObject.IsEmpty()); 18 ASSERT(!hObject.IsEmpty());
19 ASSERT(hObject->InternalFieldCount() > 0); 19 ASSERT(hObject->InternalFieldCount() > 0);
20 hObject->SetAlignedPointerInInternalField(0, lpNewBinding); 20 hObject->SetAlignedPointerInInternalField(0, lpNewBinding);
(...skipping 20 matching lines...) Expand all
41 v8::Local<v8::FunctionTemplate> hClass = 41 v8::Local<v8::FunctionTemplate> hClass =
42 v8::Local<v8::FunctionTemplate>::New( 42 v8::Local<v8::FunctionTemplate>::New(
43 lpClass->GetContext()->GetRuntime(), lpClass->GetTemplate()); 43 lpClass->GetContext()->GetRuntime(), lpClass->GetTemplate());
44 if (!hClass->HasInstance(hObject)) { 44 if (!hClass->HasInstance(hObject)) {
45 return NULL; 45 return NULL;
46 } 46 }
47 } 47 }
48 return hObject->GetAlignedPointerFromInternalField(0); 48 return hObject->GetAlignedPointerFromInternalField(0);
49 } 49 }
50 50
51 #endif // XFA_SRC_FXJSE_UTIL_INLINE_H_ 51 #endif // XFA_FXJSE_UTIL_INLINE_H_
OLDNEW
« no previous file with comments | « xfa/fxjse/scope_inline.h ('k') | xfa/fxjse/value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698