summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/color.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-07 12:52:13 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-07 12:52:13 -0700
commit213a172779fddbd7e588ee2e2b3906ccc47d6896 (patch)
tree616a1277bf9f6cc007c2408a4cf0c0e7abfe67c3 /fpdfsdk/src/javascript/color.cpp
parent4401d4095d1306fa844170d70ae7647bc10f2d2d (diff)
downloadpdfium-213a172779fddbd7e588ee2e2b3906ccc47d6896.tar.xz
Rename IFXJS_Runtime and IFXJS_Context to IJS_.
Nothing but sed. FXJS is a layer that makes it easier to define objects in V8, but has no knowledge of PDF-specific native objects. It could in theory be used to implement other sets of native objects. JS is the layer that implements PDF-specific native objects on top of FXJS. Therefore, the classes used to interface to JS should be named using IJS_. IFXJS_ is reserved for someday adding better API for FXJS iteslf. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1386173002 .
Diffstat (limited to 'fpdfsdk/src/javascript/color.cpp')
-rw-r--r--fpdfsdk/src/javascript/color.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/src/javascript/color.cpp b/fpdfsdk/src/javascript/color.cpp
index da6fc60076..791785a626 100644
--- a/fpdfsdk/src/javascript/color.cpp
+++ b/fpdfsdk/src/javascript/color.cpp
@@ -14,7 +14,7 @@
#include "JS_Context.h"
#include "JS_Runtime.h"
-static v8::Isolate* GetIsolate(IFXJS_Context* cc) {
+static v8::Isolate* GetIsolate(IJS_Context* cc) {
CJS_Context* pContext = (CJS_Context*)cc;
ASSERT(pContext != NULL);
@@ -140,7 +140,7 @@ void color::ConvertArrayToPWLColor(CJS_Array& array, CPWL_Color& color) {
}
#define JS_IMPLEMENT_COLORPROP(prop, var) \
- FX_BOOL color::prop(IFXJS_Context* cc, CJS_PropValue& vp, \
+ FX_BOOL color::prop(IJS_Context* cc, CJS_PropValue& vp, \
CFX_WideString& sError) { \
CJS_Context* pContext = (CJS_Context*)cc; \
v8::Isolate* isolate = pContext->GetJSRuntime()->GetIsolate(); \
@@ -170,7 +170,7 @@ JS_IMPLEMENT_COLORPROP(dkGray, m_crDKGray)
JS_IMPLEMENT_COLORPROP(gray, m_crGray)
JS_IMPLEMENT_COLORPROP(ltGray, m_crLTGray)
-FX_BOOL color::convert(IFXJS_Context* cc,
+FX_BOOL color::convert(IJS_Context* cc,
const CJS_Parameters& params,
CJS_Value& vRet,
CFX_WideString& sError) {
@@ -207,7 +207,7 @@ FX_BOOL color::convert(IFXJS_Context* cc,
return TRUE;
}
-FX_BOOL color::equal(IFXJS_Context* cc,
+FX_BOOL color::equal(IJS_Context* cc,
const CJS_Parameters& params,
CJS_Value& vRet,
CFX_WideString& sError) {