OLD | NEW |
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 FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
11 | 11 |
12 class event : public CJS_EmbedObj | 12 class event : public CJS_EmbedObj |
13 { | 13 { |
14 public: | 14 public: |
15 event(CJS_Object * pJSObject); | 15 event(CJS_Object * pJSObject); |
16 virtual ~event(void); | 16 virtual ~event(void); |
17 | 17 |
18 public: | 18 public: |
19 » FX_BOOL change(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); | 19 » bool change(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError
); |
20 » FX_BOOL changeEx(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& s
Error); | 20 » bool changeEx(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); |
21 » FX_BOOL commitKey(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 21 » bool commitKey(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); |
22 » FX_BOOL fieldFull(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 22 » bool fieldFull(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); |
23 » FX_BOOL keyDown(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE
rror); | 23 » bool keyDown(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); |
24 » FX_BOOL modifier(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& s
Error); | 24 » bool modifier(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); |
25 » FX_BOOL name(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); | 25 » bool name(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
26 » FX_BOOL rc(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)
; | 26 » bool rc(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
27 » FX_BOOL richChange(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 27 » bool richChange(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE
rror); |
28 » FX_BOOL richChangeEx(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideStrin
g& sError); | 28 » bool richChangeEx(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); |
29 » FX_BOOL richValue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 29 » bool richValue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); |
30 » FX_BOOL selEnd(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); | 30 » bool selEnd(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError
); |
31 » FX_BOOL selStart(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& s
Error); | 31 » bool selStart(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); |
32 » FX_BOOL shift(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); | 32 » bool shift(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)
; |
33 » FX_BOOL source(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); | 33 » bool source(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError
); |
34 » FX_BOOL target(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); | 34 » bool target(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError
); |
35 » FX_BOOL targetName(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 35 » bool targetName(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE
rror); |
36 » FX_BOOL type(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); | 36 » bool type(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
37 » FX_BOOL value(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); | 37 » bool value(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)
; |
38 » FX_BOOL willCommit(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString&
sError); | 38 » bool willCommit(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sE
rror); |
39 | 39 |
40 }; | 40 }; |
41 | 41 |
42 class CJS_Event : public CJS_Object | 42 class CJS_Event : public CJS_Object |
43 { | 43 { |
44 public: | 44 public: |
45 CJS_Event(JSFXObject pObject) : CJS_Object(pObject) {}; | 45 CJS_Event(JSFXObject pObject) : CJS_Object(pObject) {}; |
46 virtual ~CJS_Event(void){}; | 46 virtual ~CJS_Event(void){}; |
47 | 47 |
48 DECLARE_JS_CLASS(CJS_Event); | 48 DECLARE_JS_CLASS(CJS_Event); |
(...skipping 14 matching lines...) Expand all Loading... |
63 JS_STATIC_PROP(shift, event); | 63 JS_STATIC_PROP(shift, event); |
64 JS_STATIC_PROP(source, event); | 64 JS_STATIC_PROP(source, event); |
65 JS_STATIC_PROP(target, event); | 65 JS_STATIC_PROP(target, event); |
66 JS_STATIC_PROP(targetName, event); | 66 JS_STATIC_PROP(targetName, event); |
67 JS_STATIC_PROP(type, event); | 67 JS_STATIC_PROP(type, event); |
68 JS_STATIC_PROP(value, event); | 68 JS_STATIC_PROP(value, event); |
69 JS_STATIC_PROP(willCommit, event); | 69 JS_STATIC_PROP(willCommit, event); |
70 }; | 70 }; |
71 | 71 |
72 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ | 72 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_ |
OLD | NEW |