summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-30 18:12:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-10-30 18:12:32 +0000
commit4ab6b380624b3eaad7b17874e92e10e3feaa5cd9 (patch)
tree82d3e8c2eab5d8ed1a98eb059adc7798c7d1a89a
parentba9b9c3bd88817a47df1bbba16d58e7b504aef46 (diff)
downloadpdfium-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>
-rw-r--r--BUILD.gn4
-rw-r--r--fpdfsdk/javascript/cjs_event.cpp (renamed from fpdfsdk/javascript/event.cpp)2
-rw-r--r--fpdfsdk/javascript/cjs_event.h (renamed from fpdfsdk/javascript/event.h)6
-rw-r--r--fpdfsdk/javascript/cjs_runtime.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 5666c24492..db940dfe16 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1212,6 +1212,8 @@ static_library("javascript") {
"fpdfsdk/javascript/cjs_document.h",
"fpdfsdk/javascript/cjs_embedobj.cpp",
"fpdfsdk/javascript/cjs_embedobj.h",
+ "fpdfsdk/javascript/cjs_event.cpp",
+ "fpdfsdk/javascript/cjs_event.h",
"fpdfsdk/javascript/cjs_event_context.cpp",
"fpdfsdk/javascript/cjs_event_context.h",
"fpdfsdk/javascript/cjs_eventhandler.cpp",
@@ -1252,8 +1254,6 @@ static_library("javascript") {
"fpdfsdk/javascript/cjs_timerobj.h",
"fpdfsdk/javascript/cjs_zoomtype.cpp",
"fpdfsdk/javascript/cjs_zoomtype.h",
- "fpdfsdk/javascript/event.cpp",
- "fpdfsdk/javascript/event.h",
"fpdfsdk/javascript/global_timer.cpp",
"fpdfsdk/javascript/global_timer.h",
"fpdfsdk/javascript/report.cpp",
diff --git a/fpdfsdk/javascript/event.cpp b/fpdfsdk/javascript/cjs_event.cpp
index 22aaa04315..28756a45b4 100644
--- a/fpdfsdk/javascript/event.cpp
+++ b/fpdfsdk/javascript/cjs_event.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/javascript/event.h"
+#include "fpdfsdk/javascript/cjs_event.h"
#include "fpdfsdk/javascript/JS_Define.h"
#include "fpdfsdk/javascript/cjs_event_context.h"
diff --git a/fpdfsdk/javascript/event.h b/fpdfsdk/javascript/cjs_event.h
index 8aa7c0e639..27e158926b 100644
--- a/fpdfsdk/javascript/event.h
+++ b/fpdfsdk/javascript/cjs_event.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_JAVASCRIPT_EVENT_H_
-#define FPDFSDK_JAVASCRIPT_EVENT_H_
+#ifndef FPDFSDK_JAVASCRIPT_CJS_EVENT_H_
+#define FPDFSDK_JAVASCRIPT_CJS_EVENT_H_
#include "fpdfsdk/javascript/JS_Define.h"
@@ -108,4 +108,4 @@ class CJS_Event : public CJS_Object {
static const JSPropertySpec PropertySpecs[];
};
-#endif // FPDFSDK_JAVASCRIPT_EVENT_H_
+#endif // FPDFSDK_JAVASCRIPT_CJS_EVENT_H_
diff --git a/fpdfsdk/javascript/cjs_runtime.cpp b/fpdfsdk/javascript/cjs_runtime.cpp
index 581d5c70a8..2c71b013dd 100644
--- a/fpdfsdk/javascript/cjs_runtime.cpp
+++ b/fpdfsdk/javascript/cjs_runtime.cpp
@@ -18,6 +18,7 @@
#include "fpdfsdk/javascript/cjs_console.h"
#include "fpdfsdk/javascript/cjs_display.h"
#include "fpdfsdk/javascript/cjs_document.h"
+#include "fpdfsdk/javascript/cjs_event.h"
#include "fpdfsdk/javascript/cjs_event_context.h"
#include "fpdfsdk/javascript/cjs_eventhandler.h"
#include "fpdfsdk/javascript/cjs_field.h"
@@ -36,7 +37,6 @@
#include "fpdfsdk/javascript/cjs_style.h"
#include "fpdfsdk/javascript/cjs_timerobj.h"
#include "fpdfsdk/javascript/cjs_zoomtype.h"
-#include "fpdfsdk/javascript/event.h"
#include "fpdfsdk/javascript/report.h"
#include "fpdfsdk/javascript/util.h"
#include "public/fpdf_formfill.h"