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

Side by Side Diff: fxjse/include/cfxjse_value.h

Issue 2072803002: Make code compile with clang_use_chrome_plugin (final) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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 | « fxjse/include/cfxjse_class.h ('k') | fxjse/runtime.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 FXJSE_INCLUDE_CFXJSE_VALUE_H_ 7 #ifndef FXJSE_INCLUDE_CFXJSE_VALUE_H_
8 #define FXJSE_INCLUDE_CFXJSE_VALUE_H_ 8 #define FXJSE_INCLUDE_CFXJSE_VALUE_H_
9 9
10 #include "fxjse/scope_inline.h" 10 #include "fxjse/scope_inline.h"
11 11
12 class CFXJSE_Value { 12 class CFXJSE_Value {
13 public: 13 public:
14 CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} 14 explicit CFXJSE_Value(v8::Isolate* pIsolate);
15 ~CFXJSE_Value();
15 16
16 FX_BOOL IsUndefined() const { 17 FX_BOOL IsUndefined() const {
17 if (m_hValue.IsEmpty()) { 18 if (m_hValue.IsEmpty()) {
18 return FALSE; 19 return FALSE;
19 } 20 }
20 CFXJSE_ScopeUtil_IsolateHandle scope(m_pIsolate); 21 CFXJSE_ScopeUtil_IsolateHandle scope(m_pIsolate);
21 v8::Local<v8::Value> hValue = 22 v8::Local<v8::Value> hValue =
22 v8::Local<v8::Value>::New(m_pIsolate, m_hValue); 23 v8::Local<v8::Value>::New(m_pIsolate, m_hValue);
23 return hValue->IsUndefined(); 24 return hValue->IsUndefined();
24 } 25 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 CFXJSE_Value(); 230 CFXJSE_Value();
230 CFXJSE_Value(const CFXJSE_Value&); 231 CFXJSE_Value(const CFXJSE_Value&);
231 CFXJSE_Value& operator=(const CFXJSE_Value&); 232 CFXJSE_Value& operator=(const CFXJSE_Value&);
232 233
233 v8::Isolate* m_pIsolate; 234 v8::Isolate* m_pIsolate;
234 v8::Global<v8::Value> m_hValue; 235 v8::Global<v8::Value> m_hValue;
235 }; 236 };
236 237
237 #endif // FXJSE_INCLUDE_CFXJSE_VALUE_H_ 238 #endif // FXJSE_INCLUDE_CFXJSE_VALUE_H_
OLDNEW
« no previous file with comments | « fxjse/include/cfxjse_class.h ('k') | fxjse/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698