Initial commit.
[pdfium.git] / fpdfsdk / include / javascript / event.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4  \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _EVENT_H_\r
8 #define _EVENT_H_\r
9 \r
10 class event : public CJS_EmbedObj\r
11 {\r
12 public:\r
13         event(CJS_Object * pJSObject);\r
14         virtual ~event(void);\r
15 \r
16 public:\r
17         FX_BOOL change(OBJ_PROP_PARAMS);\r
18         FX_BOOL changeEx(OBJ_PROP_PARAMS);\r
19         FX_BOOL commitKey(OBJ_PROP_PARAMS);\r
20         FX_BOOL fieldFull(OBJ_PROP_PARAMS);\r
21         FX_BOOL keyDown(OBJ_PROP_PARAMS);\r
22         FX_BOOL modifier(OBJ_PROP_PARAMS);\r
23         FX_BOOL name(OBJ_PROP_PARAMS);\r
24         FX_BOOL rc(OBJ_PROP_PARAMS);\r
25         FX_BOOL richChange(OBJ_PROP_PARAMS);\r
26         FX_BOOL richChangeEx(OBJ_PROP_PARAMS);\r
27         FX_BOOL richValue(OBJ_PROP_PARAMS);\r
28         FX_BOOL selEnd(OBJ_PROP_PARAMS);\r
29         FX_BOOL selStart(OBJ_PROP_PARAMS);\r
30         FX_BOOL shift(OBJ_PROP_PARAMS);\r
31         FX_BOOL source(OBJ_PROP_PARAMS);\r
32         FX_BOOL target(OBJ_PROP_PARAMS);\r
33         FX_BOOL targetName(OBJ_PROP_PARAMS);\r
34         FX_BOOL type(OBJ_PROP_PARAMS);\r
35         FX_BOOL value(OBJ_PROP_PARAMS);\r
36         FX_BOOL willCommit(OBJ_PROP_PARAMS);\r
37 \r
38 };\r
39 \r
40 class CJS_Event : public CJS_Object\r
41 {\r
42 public:\r
43         CJS_Event(JSFXObject  pObject) : CJS_Object(pObject) {};\r
44         virtual ~CJS_Event(void){};\r
45 \r
46         DECLARE_JS_CLASS(CJS_Event);\r
47 \r
48         JS_STATIC_PROP(change, event);\r
49         JS_STATIC_PROP(changeEx, event);\r
50         JS_STATIC_PROP(commitKey, event);\r
51         JS_STATIC_PROP(fieldFull, event);\r
52         JS_STATIC_PROP(keyDown, event);\r
53         JS_STATIC_PROP(modifier, event);\r
54         JS_STATIC_PROP(name, event);\r
55         JS_STATIC_PROP(rc, event);\r
56         JS_STATIC_PROP(richChange, event);\r
57         JS_STATIC_PROP(richChangeEx, event);\r
58         JS_STATIC_PROP(richValue, event);\r
59         JS_STATIC_PROP(selEnd, event);\r
60         JS_STATIC_PROP(selStart, event);\r
61         JS_STATIC_PROP(shift, event);\r
62         JS_STATIC_PROP(source, event);\r
63         JS_STATIC_PROP(target, event);\r
64         JS_STATIC_PROP(targetName, event);\r
65         JS_STATIC_PROP(type, event);\r
66         JS_STATIC_PROP(value, event);\r
67         JS_STATIC_PROP(willCommit, event);\r
68 };\r
69 \r
70 #endif //_EVENT_H_\r