dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 1 | // Copyright 2017 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 | |
Dan Sinclair | e0345a4 | 2017-10-30 20:20:42 +0000 | [diff] [blame] | 7 | #ifndef FXJS_CJS_POSITION_H_ |
| 8 | #define FXJS_CJS_POSITION_H_ |
dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 9 | |
Lei Zhang | 31beedc | 2018-10-18 21:09:55 +0000 | [diff] [blame] | 10 | #include "fxjs/cjs_object.h" |
dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 11 | |
Tom Sepez | 5586545 | 2018-08-27 20:18:04 +0000 | [diff] [blame] | 12 | class CJS_Position final : public CJS_Object { |
dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 13 | public: |
Dan Sinclair | bef4d3e | 2017-10-26 16:49:38 -0400 | [diff] [blame] | 14 | static void DefineJSObjects(CFXJS_Engine* pEngine); |
Dan Sinclair | ef29953 | 2017-10-26 16:48:30 -0400 | [diff] [blame] | 15 | |
Tom Sepez | 007daeb | 2018-10-29 20:55:28 +0000 | [diff] [blame] | 16 | CJS_Position() = delete; |
dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 17 | |
Dan Sinclair | ef29953 | 2017-10-26 16:48:30 -0400 | [diff] [blame] | 18 | private: |
| 19 | static int ObjDefnID; |
Dan Sinclair | c94a793 | 2017-10-26 16:48:57 -0400 | [diff] [blame] | 20 | static const JSConstSpec ConstSpecs[]; |
dan sinclair | 993a199 | 2017-10-25 20:21:09 -0400 | [diff] [blame] | 21 | }; |
| 22 | |
Dan Sinclair | e0345a4 | 2017-10-30 20:20:42 +0000 | [diff] [blame] | 23 | #endif // FXJS_CJS_POSITION_H_ |