Home | History | Annotate | Download | only in fxjs
      1 // Copyright 2017 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef FXJS_JS_RESOURCES_H_
      8 #define FXJS_JS_RESOURCES_H_
      9 
     10 #include "core/fxcrt/widestring.h"
     11 
     12 enum class JSMessage {
     13   kRunSuccess = 0,
     14   kAlert,
     15   kParamError,
     16   kInvalidInputError,
     17   kParamTooLongError,
     18   kParseDateError,
     19   kRangeBetweenError,
     20   kRangeGreaterError,
     21   kRangeLessError,
     22   kNotSupportedError,
     23   kBusyError,
     24   kDuplicateEventError,
     25   kSecondParamNotDateError,
     26   kSecondParamInvalidDateError,
     27   kGlobalNotFoundError,
     28   kReadOnlyError,
     29   kTypeError,
     30   kValueError,
     31   kPermissionError,
     32   kBadObjectError,
     33   kTooManyOccurances
     34 };
     35 
     36 WideString JSGetStringFromID(JSMessage msg);
     37 WideString JSFormatErrorString(const char* class_name,
     38                                const char* property_name,
     39                                const WideString& details);
     40 
     41 #endif  // FXJS_JS_RESOURCES_H_
     42