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

Side by Side Diff: fpdfsdk/include/javascript/event.h

Issue 927263003: Tidy up JS_Defines.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 10 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
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 _EVENT_H_ 7 #ifndef _EVENT_H_
8 #define _EVENT_H_ 8 #define _EVENT_H_
9 9
10 class event : public CJS_EmbedObj 10 class event : public CJS_EmbedObj
11 { 11 {
12 public: 12 public:
13 event(CJS_Object * pJSObject); 13 event(CJS_Object * pJSObject);
14 virtual ~event(void); 14 virtual ~event(void);
15 15
16 public: 16 public:
17 » FX_BOOL change(OBJ_PROP_PARAMS); 17 » FX_BOOL change(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sEr ror);
18 » FX_BOOL changeEx(OBJ_PROP_PARAMS); 18 » FX_BOOL changeEx(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& s Error);
19 » FX_BOOL commitKey(OBJ_PROP_PARAMS); 19 » FX_BOOL commitKey(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
20 » FX_BOOL fieldFull(OBJ_PROP_PARAMS); 20 » FX_BOOL fieldFull(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
21 » FX_BOOL keyDown(OBJ_PROP_PARAMS); 21 » FX_BOOL keyDown(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sE rror);
22 » FX_BOOL modifier(OBJ_PROP_PARAMS); 22 » FX_BOOL modifier(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& s Error);
23 » FX_BOOL name(OBJ_PROP_PARAMS); 23 » FX_BOOL name(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sErro r);
24 » FX_BOOL rc(OBJ_PROP_PARAMS); 24 » FX_BOOL rc(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError) ;
25 » FX_BOOL richChange(OBJ_PROP_PARAMS); 25 » FX_BOOL richChange(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
26 » FX_BOOL richChangeEx(OBJ_PROP_PARAMS); 26 » FX_BOOL richChangeEx(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorStrin g& sError);
27 » FX_BOOL richValue(OBJ_PROP_PARAMS); 27 » FX_BOOL richValue(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
28 » FX_BOOL selEnd(OBJ_PROP_PARAMS); 28 » FX_BOOL selEnd(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sEr ror);
29 » FX_BOOL selStart(OBJ_PROP_PARAMS); 29 » FX_BOOL selStart(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& s Error);
30 » FX_BOOL shift(OBJ_PROP_PARAMS); 30 » FX_BOOL shift(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sErr or);
31 » FX_BOOL source(OBJ_PROP_PARAMS); 31 » FX_BOOL source(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sEr ror);
32 » FX_BOOL target(OBJ_PROP_PARAMS); 32 » FX_BOOL target(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sEr ror);
33 » FX_BOOL targetName(OBJ_PROP_PARAMS); 33 » FX_BOOL targetName(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
34 » FX_BOOL type(OBJ_PROP_PARAMS); 34 » FX_BOOL type(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sErro r);
35 » FX_BOOL value(OBJ_PROP_PARAMS); 35 » FX_BOOL value(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sErr or);
36 » FX_BOOL willCommit(OBJ_PROP_PARAMS); 36 » FX_BOOL willCommit(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
37 37
38 }; 38 };
39 39
40 class CJS_Event : public CJS_Object 40 class CJS_Event : public CJS_Object
41 { 41 {
42 public: 42 public:
43 CJS_Event(JSFXObject pObject) : CJS_Object(pObject) {}; 43 CJS_Event(JSFXObject pObject) : CJS_Object(pObject) {};
44 virtual ~CJS_Event(void){}; 44 virtual ~CJS_Event(void){};
45 45
46 DECLARE_JS_CLASS(CJS_Event); 46 DECLARE_JS_CLASS(CJS_Event);
(...skipping 14 matching lines...) Expand all
61 JS_STATIC_PROP(shift, event); 61 JS_STATIC_PROP(shift, event);
62 JS_STATIC_PROP(source, event); 62 JS_STATIC_PROP(source, event);
63 JS_STATIC_PROP(target, event); 63 JS_STATIC_PROP(target, event);
64 JS_STATIC_PROP(targetName, event); 64 JS_STATIC_PROP(targetName, event);
65 JS_STATIC_PROP(type, event); 65 JS_STATIC_PROP(type, event);
66 JS_STATIC_PROP(value, event); 66 JS_STATIC_PROP(value, event);
67 JS_STATIC_PROP(willCommit, event); 67 JS_STATIC_PROP(willCommit, event);
68 }; 68 };
69 69
70 #endif //_EVENT_H_ 70 #endif //_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698