1 // Copyright 2014 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 _EVENT_H_ 8 #define _EVENT_H_ 9 10 class event : public CJS_EmbedObj 11 { 12 public: 13 event(CJS_Object * pJSObject); 14 virtual ~event(void); 15 16 public: 17 FX_BOOL change(OBJ_PROP_PARAMS); 18 FX_BOOL changeEx(OBJ_PROP_PARAMS); 19 FX_BOOL commitKey(OBJ_PROP_PARAMS); 20 FX_BOOL fieldFull(OBJ_PROP_PARAMS); 21 FX_BOOL keyDown(OBJ_PROP_PARAMS); 22 FX_BOOL modifier(OBJ_PROP_PARAMS); 23 FX_BOOL name(OBJ_PROP_PARAMS); 24 FX_BOOL rc(OBJ_PROP_PARAMS); 25 FX_BOOL richChange(OBJ_PROP_PARAMS); 26 FX_BOOL richChangeEx(OBJ_PROP_PARAMS); 27 FX_BOOL richValue(OBJ_PROP_PARAMS); 28 FX_BOOL selEnd(OBJ_PROP_PARAMS); 29 FX_BOOL selStart(OBJ_PROP_PARAMS); 30 FX_BOOL shift(OBJ_PROP_PARAMS); 31 FX_BOOL source(OBJ_PROP_PARAMS); 32 FX_BOOL target(OBJ_PROP_PARAMS); 33 FX_BOOL targetName(OBJ_PROP_PARAMS); 34 FX_BOOL type(OBJ_PROP_PARAMS); 35 FX_BOOL value(OBJ_PROP_PARAMS); 36 FX_BOOL willCommit(OBJ_PROP_PARAMS); 37 38 }; 39 40 class CJS_Event : public CJS_Object 41 { 42 public: CJS_Event(JSFXObject pObject)43 CJS_Event(JSFXObject pObject) : CJS_Object(pObject) {}; ~CJS_Event(void)44 virtual ~CJS_Event(void){}; 45 46 DECLARE_JS_CLASS(CJS_Event); 47 48 JS_STATIC_PROP(change, event); 49 JS_STATIC_PROP(changeEx, event); 50 JS_STATIC_PROP(commitKey, event); 51 JS_STATIC_PROP(fieldFull, event); 52 JS_STATIC_PROP(keyDown, event); 53 JS_STATIC_PROP(modifier, event); 54 JS_STATIC_PROP(name, event); 55 JS_STATIC_PROP(rc, event); 56 JS_STATIC_PROP(richChange, event); 57 JS_STATIC_PROP(richChangeEx, event); 58 JS_STATIC_PROP(richValue, event); 59 JS_STATIC_PROP(selEnd, event); 60 JS_STATIC_PROP(selStart, event); 61 JS_STATIC_PROP(shift, event); 62 JS_STATIC_PROP(source, event); 63 JS_STATIC_PROP(target, event); 64 JS_STATIC_PROP(targetName, event); 65 JS_STATIC_PROP(type, event); 66 JS_STATIC_PROP(value, event); 67 JS_STATIC_PROP(willCommit, event); 68 }; 69 70 #endif //_EVENT_H_ 71