Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: fpdfsdk/src/fsdk_mgr.cpp

Issue 1391843004: Add some preprocessor directives to allow compiling without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/fpdfview.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fsdk_mgr.cpp
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp
index 33e56de00d787eaf22094a76abcc1a9a24c68dc1..a487d9d6839a8d171632ed29c237851cd2a50d0f 100644
--- a/fpdfsdk/src/fsdk_mgr.cpp
+++ b/fpdfsdk/src/fsdk_mgr.cpp
@@ -370,11 +370,15 @@ void CPDFDoc_Environment::JS_docmailForm(void* mailData,
}
IJS_Runtime* CPDFDoc_Environment::GetJSRuntime() {
+#ifdef DISABLE_V8
+ return NULL;
+#else
if (!IsJSInitiated())
return NULL;
if (!m_pJSRuntime)
m_pJSRuntime.reset(IJS_Runtime::Create(this));
return m_pJSRuntime.get();
+#endif // DISABLE_V8
}
CPDFSDK_AnnotHandlerMgr* CPDFDoc_Environment::GetAnnotHandlerMgr() {
« no previous file with comments | « fpdfsdk/src/fpdfview.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698