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

Side by Side Diff: fpdfsdk/javascript/Annot.h

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 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
« no previous file with comments | « fpdfsdk/ipdfsdk_annothandler.h ('k') | fpdfsdk/javascript/Annot.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 FPDFSDK_JAVASCRIPT_ANNOT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_ANNOT_H_
8 #define FPDFSDK_JAVASCRIPT_ANNOT_H_ 8 #define FPDFSDK_JAVASCRIPT_ANNOT_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "fpdfsdk/cpdfsdk_baannot.h" 12 #include "fpdfsdk/cpdfsdk_baannot.h"
13 #include "fpdfsdk/javascript/JS_Define.h" 13 #include "fpdfsdk/javascript/JS_Define.h"
14 14
15 class Annot : public CJS_EmbedObj { 15 class Annot : public CJS_EmbedObj {
16 public: 16 public:
17 explicit Annot(CJS_Object* pJSObject); 17 explicit Annot(CJS_Object* pJSObject);
18 ~Annot() override; 18 ~Annot() override;
19 19
20 FX_BOOL hidden(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 20 bool hidden(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
21 FX_BOOL name(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 21 bool name(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
22 FX_BOOL type(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 22 bool type(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
23 23
24 void SetSDKAnnot(CPDFSDK_BAAnnot* annot); 24 void SetSDKAnnot(CPDFSDK_BAAnnot* annot);
25 25
26 private: 26 private:
27 CPDFSDK_Annot::ObservedPtr m_pAnnot; 27 CPDFSDK_Annot::ObservedPtr m_pAnnot;
28 }; 28 };
29 29
30 class CJS_Annot : public CJS_Object { 30 class CJS_Annot : public CJS_Object {
31 public: 31 public:
32 explicit CJS_Annot(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} 32 explicit CJS_Annot(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
33 ~CJS_Annot() override {} 33 ~CJS_Annot() override {}
34 34
35 DECLARE_JS_CLASS(); 35 DECLARE_JS_CLASS();
36 JS_STATIC_PROP(hidden, Annot); 36 JS_STATIC_PROP(hidden, Annot);
37 JS_STATIC_PROP(name, Annot); 37 JS_STATIC_PROP(name, Annot);
38 JS_STATIC_PROP(type, Annot); 38 JS_STATIC_PROP(type, Annot);
39 }; 39 };
40 40
41 #endif // FPDFSDK_JAVASCRIPT_ANNOT_H_ 41 #endif // FPDFSDK_JAVASCRIPT_ANNOT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/ipdfsdk_annothandler.h ('k') | fpdfsdk/javascript/Annot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698