summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-30 19:51:03 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-10-30 19:51:03 +0000
commit5bfac68b530d0dae99dfde648ccadd667c238b0d (patch)
tree93b075790f4928d89ebef34b1abad8ea8f5fea71 /fpdfsdk/javascript
parenta45dc45bd2c58ff2911630f913f6ac06ccae9d33 (diff)
downloadpdfium-5bfac68b530d0dae99dfde648ccadd667c238b0d.tar.xz
Rename util to cjs_util
This CL renames util.{cpp|h} to cjs_util.{cpp|h} to match the file contents. Change-Id: Ia1bcbced0d817e2334310a25b09f9ec56822d600 Reviewed-on: https://pdfium-review.googlesource.com/17046 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r--fpdfsdk/javascript/cjs_publicmethods.cpp2
-rw-r--r--fpdfsdk/javascript/cjs_runtime.cpp2
-rw-r--r--fpdfsdk/javascript/cjs_util.cpp (renamed from fpdfsdk/javascript/util.cpp)2
-rw-r--r--fpdfsdk/javascript/cjs_util.h (renamed from fpdfsdk/javascript/util.h)6
-rw-r--r--fpdfsdk/javascript/cjs_util_unittest.cpp (renamed from fpdfsdk/javascript/util_unittest.cpp)2
5 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/javascript/cjs_publicmethods.cpp b/fpdfsdk/javascript/cjs_publicmethods.cpp
index fb4cc2c3ee..3a309d4225 100644
--- a/fpdfsdk/javascript/cjs_publicmethods.cpp
+++ b/fpdfsdk/javascript/cjs_publicmethods.cpp
@@ -26,8 +26,8 @@
#include "fpdfsdk/javascript/cjs_field.h"
#include "fpdfsdk/javascript/cjs_object.h"
#include "fpdfsdk/javascript/cjs_runtime.h"
+#include "fpdfsdk/javascript/cjs_util.h"
#include "fpdfsdk/javascript/js_resources.h"
-#include "fpdfsdk/javascript/util.h"
#define DOUBLE_CORRECT 0.000000000000001
diff --git a/fpdfsdk/javascript/cjs_runtime.cpp b/fpdfsdk/javascript/cjs_runtime.cpp
index ae66e99ca4..9e09ad2996 100644
--- a/fpdfsdk/javascript/cjs_runtime.cpp
+++ b/fpdfsdk/javascript/cjs_runtime.cpp
@@ -37,8 +37,8 @@
#include "fpdfsdk/javascript/cjs_scalewhen.h"
#include "fpdfsdk/javascript/cjs_style.h"
#include "fpdfsdk/javascript/cjs_timerobj.h"
+#include "fpdfsdk/javascript/cjs_util.h"
#include "fpdfsdk/javascript/cjs_zoomtype.h"
-#include "fpdfsdk/javascript/util.h"
#include "public/fpdf_formfill.h"
#include "third_party/base/stl_util.h"
diff --git a/fpdfsdk/javascript/util.cpp b/fpdfsdk/javascript/cjs_util.cpp
index 3dd5eb6d91..6eb52f13fe 100644
--- a/fpdfsdk/javascript/util.cpp
+++ b/fpdfsdk/javascript/cjs_util.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/javascript/util.h"
+#include "fpdfsdk/javascript/cjs_util.h"
#include <time.h>
diff --git a/fpdfsdk/javascript/util.h b/fpdfsdk/javascript/cjs_util.h
index 269b89efa3..f3d808bcb6 100644
--- a/fpdfsdk/javascript/util.h
+++ b/fpdfsdk/javascript/cjs_util.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_JAVASCRIPT_UTIL_H_
-#define FPDFSDK_JAVASCRIPT_UTIL_H_
+#ifndef FPDFSDK_JAVASCRIPT_CJS_UTIL_H_
+#define FPDFSDK_JAVASCRIPT_CJS_UTIL_H_
#include <string>
#include <vector>
@@ -60,4 +60,4 @@ class CJS_Util : public CJS_Object {
static const JSMethodSpec MethodSpecs[];
};
-#endif // FPDFSDK_JAVASCRIPT_UTIL_H_
+#endif // FPDFSDK_JAVASCRIPT_CJS_UTIL_H_
diff --git a/fpdfsdk/javascript/util_unittest.cpp b/fpdfsdk/javascript/cjs_util_unittest.cpp
index 8e28dc1bdc..bfd5b58abd 100644
--- a/fpdfsdk/javascript/util_unittest.cpp
+++ b/fpdfsdk/javascript/cjs_util_unittest.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "fpdfsdk/javascript/util.h"
+#include "fpdfsdk/javascript/cjs_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/test_support.h"