diff options
author | tsepez <tsepez@chromium.org> | 2016-06-01 16:10:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-01 16:10:41 -0700 |
commit | fb2a824f87f7096382681fd258906823ef93ebec (patch) | |
tree | 1754bc611306c55ffe02e971db11349de530f491 /xfa/fxjse/include | |
parent | 44f8faf9852a37df1edda34f99e1de4c9d222921 (diff) | |
download | pdfium-fb2a824f87f7096382681fd258906823ef93ebec.tar.xz |
Don't use array for only one compatible mode script
Also, don't invent an enum that has one possible value that is
always set.
Review-Url: https://codereview.chromium.org/2028343002
Diffstat (limited to 'xfa/fxjse/include')
-rw-r--r-- | xfa/fxjse/include/fxjse.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xfa/fxjse/include/fxjse.h b/xfa/fxjse/include/fxjse.h index ab95a6d675..8a34ad0c7b 100644 --- a/xfa/fxjse/include/fxjse.h +++ b/xfa/fxjse/include/fxjse.h @@ -36,11 +36,6 @@ enum FXJSE_ClassPropTypes { FXJSE_ClassPropType_Method }; -enum FXJSE_CompatibleModeFlags { - FXJSE_COMPATIBLEMODEFLAG_CONSTRUCTOREXTRAMETHODS = (1 << 0), - FXJSE_COMPATIBLEMODEFLAGCOUNT = 1, -}; - struct FXJSE_FUNCTION_DESCRIPTOR { const FX_CHAR* name; FXJSE_FuncCallback callbackProc; @@ -78,9 +73,7 @@ CFXJSE_Context* FXJSE_Context_Create( CFXJSE_HostObject* lpGlobalObject); void FXJSE_Context_Release(CFXJSE_Context* pContext); CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext); - -void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext, - uint32_t dwCompatibleFlags); +void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext); CFXJSE_Class* FXJSE_DefineClass(CFXJSE_Context* pContext, const FXJSE_CLASS_DESCRIPTOR* lpClass); |