diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-30 18:12:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-30 18:12:32 +0000 |
commit | 4ab6b380624b3eaad7b17874e92e10e3feaa5cd9 (patch) | |
tree | 82d3e8c2eab5d8ed1a98eb059adc7798c7d1a89a /fpdfsdk/javascript/event.h | |
parent | ba9b9c3bd88817a47df1bbba16d58e7b504aef46 (diff) | |
download | pdfium-4ab6b380624b3eaad7b17874e92e10e3feaa5cd9.tar.xz |
Rename event to cjs_event
This CL renames the event.{cpp|h} files to cjs_event.{cpp|h} to match
the internal class.
Change-Id: I0e41a7ee068829f2bc8d94ff926edcf49b3a3c9f
Reviewed-on: https://pdfium-review.googlesource.com/17043
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/event.h')
-rw-r--r-- | fpdfsdk/javascript/event.h | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/fpdfsdk/javascript/event.h b/fpdfsdk/javascript/event.h deleted file mode 100644 index 8aa7c0e639..0000000000 --- a/fpdfsdk/javascript/event.h +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef FPDFSDK_JAVASCRIPT_EVENT_H_ -#define FPDFSDK_JAVASCRIPT_EVENT_H_ - -#include "fpdfsdk/javascript/JS_Define.h" - -class event : public CJS_EmbedObj { - public: - explicit event(CJS_Object* pJSObject); - ~event() override; - - CJS_Return get_change(CJS_Runtime* pRuntime); - CJS_Return set_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_change_ex(CJS_Runtime* pRuntime); - CJS_Return set_change_ex(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_commit_key(CJS_Runtime* pRuntime); - CJS_Return set_commit_key(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_field_full(CJS_Runtime* pRuntime); - CJS_Return set_field_full(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_key_down(CJS_Runtime* pRuntime); - CJS_Return set_key_down(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_modifier(CJS_Runtime* pRuntime); - CJS_Return set_modifier(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_name(CJS_Runtime* pRuntime); - CJS_Return set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_rc(CJS_Runtime* pRuntime); - CJS_Return set_rc(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_rich_change(CJS_Runtime* pRuntime); - CJS_Return set_rich_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_rich_change_ex(CJS_Runtime* pRuntime); - CJS_Return set_rich_change_ex(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_rich_value(CJS_Runtime* pRuntime); - CJS_Return set_rich_value(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_sel_end(CJS_Runtime* pRuntime); - CJS_Return set_sel_end(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_sel_start(CJS_Runtime* pRuntime); - CJS_Return set_sel_start(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_shift(CJS_Runtime* pRuntime); - CJS_Return set_shift(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_source(CJS_Runtime* pRuntime); - CJS_Return set_source(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_target(CJS_Runtime* pRuntime); - CJS_Return set_target(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_target_name(CJS_Runtime* pRuntime); - CJS_Return set_target_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_type(CJS_Runtime* pRuntime); - CJS_Return set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_value(CJS_Runtime* pRuntime); - CJS_Return set_value(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); - - CJS_Return get_will_commit(CJS_Runtime* pRuntime); - CJS_Return set_will_commit(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp); -}; - -class CJS_Event : public CJS_Object { - public: - static void DefineJSObjects(CFXJS_Engine* pEngine); - - explicit CJS_Event(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} - ~CJS_Event() override {} - - JS_STATIC_PROP(change, change, event); - JS_STATIC_PROP(changeEx, change_ex, event); - JS_STATIC_PROP(commitKey, commit_key, event); - JS_STATIC_PROP(fieldFull, field_full, event); - JS_STATIC_PROP(keyDown, key_down, event); - JS_STATIC_PROP(modifier, modifier, event); - JS_STATIC_PROP(name, name, event); - JS_STATIC_PROP(rc, rc, event); - JS_STATIC_PROP(richChange, rich_change, event); - JS_STATIC_PROP(richChangeEx, rich_change_ex, event); - JS_STATIC_PROP(richValue, rich_value, event); - JS_STATIC_PROP(selEnd, sel_end, event); - JS_STATIC_PROP(selStart, sel_start, event); - JS_STATIC_PROP(shift, shift, event); - JS_STATIC_PROP(source, source, event); - JS_STATIC_PROP(target, target, event); - JS_STATIC_PROP(targetName, target_name, event); - JS_STATIC_PROP(type, type, event); - JS_STATIC_PROP(value, value, event); - JS_STATIC_PROP(willCommit, will_commit, event); - - private: - static int ObjDefnID; - static const JSPropertySpec PropertySpecs[]; -}; - -#endif // FPDFSDK_JAVASCRIPT_EVENT_H_ |