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

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

Issue 2260663002: Add initial Document::getAnnot support (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef FPDFSDK_JAVASCRIPT_ANNOT_H_
8 #define FPDFSDK_JAVASCRIPT_ANNOT_H_
9
10 #include "fpdfsdk/include/cpdfsdk_baannot.h"
11 #include "fpdfsdk/javascript/JS_Define.h"
12
13 class Annot : public CJS_EmbedObj {
14 public:
15 explicit Annot(CJS_Object* pJSObject);
16 ~Annot() override;
17
18 FX_BOOL hidden(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
19 FX_BOOL name(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
20 FX_BOOL type(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
21
22 void SetData(CPDFSDK_BAAnnot* annot);
Tom Sepez 2016/08/18 21:45:06 Nit: maybe call this SetSDKAnnot(), data is kind o
tonikitoo 2016/08/19 02:39:31 Done.
23
24 private:
25 CPDFSDK_BAAnnot* m_BAAnnot = nullptr;
26 };
27
28 class CJS_Annot : public CJS_Object {
29 public:
30 explicit CJS_Annot(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
31 ~CJS_Annot() override {}
32
33 DECLARE_JS_CLASS();
34 JS_STATIC_PROP(hidden, Annot);
35 JS_STATIC_PROP(name, Annot);
36 JS_STATIC_PROP(type, Annot);
37 };
38
39 #endif // FPDFSDK_JAVASCRIPT_ANNOT_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/javascript/Annot.cpp » ('j') | fpdfsdk/javascript/Annot.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698