diff options
Diffstat (limited to 'fxjs/cjs_result.cpp')
-rw-r--r-- | fxjs/cjs_result.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fxjs/cjs_result.cpp b/fxjs/cjs_result.cpp new file mode 100644 index 0000000000..92f2b0bb82 --- /dev/null +++ b/fxjs/cjs_result.cpp @@ -0,0 +1,19 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#include "fxjs/cjs_result.h" + +CJS_Result::CJS_Result() {} + +CJS_Result::CJS_Result(v8::Local<v8::Value> ret) : return_(ret) {} + +CJS_Result::CJS_Result(const WideString& err) : error_(err) {} + +CJS_Result::CJS_Result(JSMessage id) : CJS_Result(JSGetStringFromID(id)) {} + +CJS_Result::CJS_Result(const CJS_Result&) = default; + +CJS_Result::~CJS_Result() = default; |