summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Field.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-21 15:17:07 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-22 01:09:09 +0000
commit4d5b8c5f990b8f06a55961c1f839c5b096658925 (patch)
tree4da062ca493327ac2c991fe4b6d17f9ef4793bab /fpdfsdk/javascript/Field.cpp
parent9b99b63fa5e56bd820aecdc0fd2decd22a3d075a (diff)
downloadpdfium-4d5b8c5f990b8f06a55961c1f839c5b096658925.tar.xz
Convert JS property tables to single-byte.
Change-Id: I4daec9e05a63c55caa01402a594c3553073c439e Reviewed-on: https://pdfium-review.googlesource.com/2818 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/Field.cpp')
-rw-r--r--fpdfsdk/javascript/Field.cpp107
1 files changed, 52 insertions, 55 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp
index 99e75441d4..477b472e3c 100644
--- a/fpdfsdk/javascript/Field.cpp
+++ b/fpdfsdk/javascript/Field.cpp
@@ -75,64 +75,61 @@ bool SetWidgetDisplayStatus(CPDFSDK_Widget* pWidget, int value) {
JSConstSpec CJS_Field::ConstSpecs[] = {{0, JSConstSpec::Number, 0, 0}};
JSPropertySpec CJS_Field::PropertySpecs[] = {
- {L"alignment", get_alignment_static, set_alignment_static},
- {L"borderStyle", get_borderStyle_static, set_borderStyle_static},
- {L"buttonAlignX", get_buttonAlignX_static, set_buttonAlignX_static},
- {L"buttonAlignY", get_buttonAlignY_static, set_buttonAlignY_static},
- {L"buttonFitBounds", get_buttonFitBounds_static,
- set_buttonFitBounds_static},
- {L"buttonPosition", get_buttonPosition_static, set_buttonPosition_static},
- {L"buttonScaleHow", get_buttonScaleHow_static, set_buttonScaleHow_static},
- {L"buttonScaleWhen", get_buttonScaleWhen_static,
- set_buttonScaleWhen_static},
- {L"calcOrderIndex", get_calcOrderIndex_static, set_calcOrderIndex_static},
- {L"charLimit", get_charLimit_static, set_charLimit_static},
- {L"comb", get_comb_static, set_comb_static},
- {L"commitOnSelChange", get_commitOnSelChange_static,
+ {"alignment", get_alignment_static, set_alignment_static},
+ {"borderStyle", get_borderStyle_static, set_borderStyle_static},
+ {"buttonAlignX", get_buttonAlignX_static, set_buttonAlignX_static},
+ {"buttonAlignY", get_buttonAlignY_static, set_buttonAlignY_static},
+ {"buttonFitBounds", get_buttonFitBounds_static, set_buttonFitBounds_static},
+ {"buttonPosition", get_buttonPosition_static, set_buttonPosition_static},
+ {"buttonScaleHow", get_buttonScaleHow_static, set_buttonScaleHow_static},
+ {"buttonScaleWhen", get_buttonScaleWhen_static, set_buttonScaleWhen_static},
+ {"calcOrderIndex", get_calcOrderIndex_static, set_calcOrderIndex_static},
+ {"charLimit", get_charLimit_static, set_charLimit_static},
+ {"comb", get_comb_static, set_comb_static},
+ {"commitOnSelChange", get_commitOnSelChange_static,
set_commitOnSelChange_static},
- {L"currentValueIndices", get_currentValueIndices_static,
+ {"currentValueIndices", get_currentValueIndices_static,
set_currentValueIndices_static},
- {L"defaultStyle", get_defaultStyle_static, set_defaultStyle_static},
- {L"defaultValue", get_defaultValue_static, set_defaultValue_static},
- {L"doNotScroll", get_doNotScroll_static, set_doNotScroll_static},
- {L"doNotSpellCheck", get_doNotSpellCheck_static,
- set_doNotSpellCheck_static},
- {L"delay", get_delay_static, set_delay_static},
- {L"display", get_display_static, set_display_static},
- {L"doc", get_doc_static, set_doc_static},
- {L"editable", get_editable_static, set_editable_static},
- {L"exportValues", get_exportValues_static, set_exportValues_static},
- {L"hidden", get_hidden_static, set_hidden_static},
- {L"fileSelect", get_fileSelect_static, set_fileSelect_static},
- {L"fillColor", get_fillColor_static, set_fillColor_static},
- {L"lineWidth", get_lineWidth_static, set_lineWidth_static},
- {L"highlight", get_highlight_static, set_highlight_static},
- {L"multiline", get_multiline_static, set_multiline_static},
- {L"multipleSelection", get_multipleSelection_static,
+ {"defaultStyle", get_defaultStyle_static, set_defaultStyle_static},
+ {"defaultValue", get_defaultValue_static, set_defaultValue_static},
+ {"doNotScroll", get_doNotScroll_static, set_doNotScroll_static},
+ {"doNotSpellCheck", get_doNotSpellCheck_static, set_doNotSpellCheck_static},
+ {"delay", get_delay_static, set_delay_static},
+ {"display", get_display_static, set_display_static},
+ {"doc", get_doc_static, set_doc_static},
+ {"editable", get_editable_static, set_editable_static},
+ {"exportValues", get_exportValues_static, set_exportValues_static},
+ {"hidden", get_hidden_static, set_hidden_static},
+ {"fileSelect", get_fileSelect_static, set_fileSelect_static},
+ {"fillColor", get_fillColor_static, set_fillColor_static},
+ {"lineWidth", get_lineWidth_static, set_lineWidth_static},
+ {"highlight", get_highlight_static, set_highlight_static},
+ {"multiline", get_multiline_static, set_multiline_static},
+ {"multipleSelection", get_multipleSelection_static,
set_multipleSelection_static},
- {L"name", get_name_static, set_name_static},
- {L"numItems", get_numItems_static, set_numItems_static},
- {L"page", get_page_static, set_page_static},
- {L"password", get_password_static, set_password_static},
- {L"print", get_print_static, set_print_static},
- {L"radiosInUnison", get_radiosInUnison_static, set_radiosInUnison_static},
- {L"readonly", get_readonly_static, set_readonly_static},
- {L"rect", get_rect_static, set_rect_static},
- {L"required", get_required_static, set_required_static},
- {L"richText", get_richText_static, set_richText_static},
- {L"richValue", get_richValue_static, set_richValue_static},
- {L"rotation", get_rotation_static, set_rotation_static},
- {L"strokeColor", get_strokeColor_static, set_strokeColor_static},
- {L"style", get_style_static, set_style_static},
- {L"submitName", get_submitName_static, set_submitName_static},
- {L"textColor", get_textColor_static, set_textColor_static},
- {L"textFont", get_textFont_static, set_textFont_static},
- {L"textSize", get_textSize_static, set_textSize_static},
- {L"type", get_type_static, set_type_static},
- {L"userName", get_userName_static, set_userName_static},
- {L"value", get_value_static, set_value_static},
- {L"valueAsString", get_valueAsString_static, set_valueAsString_static},
- {L"source", get_source_static, set_source_static},
+ {"name", get_name_static, set_name_static},
+ {"numItems", get_numItems_static, set_numItems_static},
+ {"page", get_page_static, set_page_static},
+ {"password", get_password_static, set_password_static},
+ {"print", get_print_static, set_print_static},
+ {"radiosInUnison", get_radiosInUnison_static, set_radiosInUnison_static},
+ {"readonly", get_readonly_static, set_readonly_static},
+ {"rect", get_rect_static, set_rect_static},
+ {"required", get_required_static, set_required_static},
+ {"richText", get_richText_static, set_richText_static},
+ {"richValue", get_richValue_static, set_richValue_static},
+ {"rotation", get_rotation_static, set_rotation_static},
+ {"strokeColor", get_strokeColor_static, set_strokeColor_static},
+ {"style", get_style_static, set_style_static},
+ {"submitName", get_submitName_static, set_submitName_static},
+ {"textColor", get_textColor_static, set_textColor_static},
+ {"textFont", get_textFont_static, set_textFont_static},
+ {"textSize", get_textSize_static, set_textSize_static},
+ {"type", get_type_static, set_type_static},
+ {"userName", get_userName_static, set_userName_static},
+ {"value", get_value_static, set_value_static},
+ {"valueAsString", get_valueAsString_static, set_valueAsString_static},
+ {"source", get_source_static, set_source_static},
{0, 0, 0}};
JSMethodSpec CJS_Field::MethodSpecs[] = {