diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-07 12:52:13 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-07 12:52:13 -0700 |
commit | 213a172779fddbd7e588ee2e2b3906ccc47d6896 (patch) | |
tree | 616a1277bf9f6cc007c2408a4cf0c0e7abfe67c3 /fpdfsdk/src/javascript/JS_Runtime.cpp | |
parent | 4401d4095d1306fa844170d70ae7647bc10f2d2d (diff) | |
download | pdfium-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/JS_Runtime.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Runtime.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp index a17b8e23a5..fcf6ee8795 100644 --- a/fpdfsdk/src/javascript/JS_Runtime.cpp +++ b/fpdfsdk/src/javascript/JS_Runtime.cpp @@ -29,7 +29,7 @@ /* ------------------------------ CJS_Runtime ------------------------------ */ -IFXJS_Runtime* IFXJS_Runtime::Create(CPDFDoc_Environment* pEnv) { +IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { return new CJS_Runtime(pEnv); } @@ -123,13 +123,13 @@ void CJS_Runtime::DefineJSObjects() { CJS_PrintParamsObj::DefineJSObjects(GetIsolate(), FXJSOBJTYPE_DYNAMIC); } -IFXJS_Context* CJS_Runtime::NewContext() { +IJS_Context* CJS_Runtime::NewContext() { CJS_Context* p = new CJS_Context(this); m_ContextArray.Add(p); return p; } -void CJS_Runtime::ReleaseContext(IFXJS_Context* pContext) { +void CJS_Runtime::ReleaseContext(IJS_Context* pContext) { CJS_Context* pJSContext = (CJS_Context*)pContext; for (int i = 0, sz = m_ContextArray.GetSize(); i < sz; i++) { @@ -141,7 +141,7 @@ void CJS_Runtime::ReleaseContext(IFXJS_Context* pContext) { } } -IFXJS_Context* CJS_Runtime::GetCurrentContext() { +IJS_Context* CJS_Runtime::GetCurrentContext() { if (!m_ContextArray.GetSize()) return NULL; return m_ContextArray.GetAt(m_ContextArray.GetSize() - 1); |