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

Side by Side Diff: fpdfsdk/include/javascript/JS_Value.h

Issue 1096813008: Kill overloaded cast operators in CJS_Value. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: fix nit. Created 5 years, 8 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 | « fpdfsdk/include/javascript/JS_Define.h ('k') | fpdfsdk/src/javascript/Document.cpp » ('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 _JS_VALUE_H_ 7 #ifndef _JS_VALUE_H_
8 #define _JS_VALUE_H_ 8 #define _JS_VALUE_H_
9 9
10 #include "../jsapi/fxjs_v8.h" 10 #include "../jsapi/fxjs_v8.h"
(...skipping 21 matching lines...) Expand all
32 CJS_Value(v8::Isolate* isolate, CJS_Array& array); 32 CJS_Value(v8::Isolate* isolate, CJS_Array& array);
33 33
34 ~CJS_Value(); 34 ~CJS_Value();
35 35
36 void SetNull(); 36 void SetNull();
37 void Attach(v8::Handle<v8::Value> pValue,FXJSVALUETYPE t); 37 void Attach(v8::Handle<v8::Value> pValue,FXJSVALUETYPE t);
38 void Attach(CJS_Value *pValue); 38 void Attach(CJS_Value *pValue);
39 void Detach(); 39 void Detach();
40 40
41 41
42 » operator int() const; 42 » int ToInt() const;
43 » operator bool() const; 43 » bool ToBool() const;
44 » operator double() const; 44 » double ToDouble() const;
45 » operator float() const; 45 » float ToFloat() const;
46 » operator CJS_Object*() const; 46 » CJS_Object* ToCJSObject() const;
47 » operator v8::Handle<v8::Object>() const; 47 » CFX_WideString ToCFXWideString() const;
48 » operator v8::Handle<v8::Array>() const; 48 » CFX_ByteString ToCFXByteString() const;
49 » operator CFX_WideString() const; 49 » v8::Handle<v8::Object> ToV8Object() const;
50 » operator CFX_ByteString() const; 50 » v8::Handle<v8::Array> ToV8Array() const;
51 » v8::Handle<v8::Value> ToJSValue(); 51 » v8::Handle<v8::Value> ToV8Value() const;
52 52
53 void operator = (int iValue); 53 void operator = (int iValue);
54 void operator = (bool bValue); 54 void operator = (bool bValue);
55 void operator = (double); 55 void operator = (double);
56 void operator = (float); 56 void operator = (float);
57 void operator = (CJS_Object*); 57 void operator = (CJS_Object*);
58 void operator = (CJS_Document*); 58 void operator = (CJS_Document*);
59 void operator = (v8::Handle<v8::Object>); 59 void operator = (v8::Handle<v8::Object>);
60 void operator = (CJS_Array &); 60 void operator = (CJS_Array &);
61 void operator = (CJS_Date &); 61 void operator = (CJS_Date &);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 FX_BOOL IsValidDate(); 182 FX_BOOL IsValidDate();
183 183
184 protected: 184 protected:
185 v8::Handle<v8::Value> m_pDate; 185 v8::Handle<v8::Value> m_pDate;
186 v8::Isolate* m_isolate; 186 v8::Isolate* m_isolate;
187 }; 187 };
188 188
189 #endif //_JS_VALUE_H_ 189 #endif //_JS_VALUE_H_
190 190
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/JS_Define.h ('k') | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698