Home
last modified time | relevance | path

Searched refs:CJS_Result (Results 1 – 25 of 58) sorted by relevance

123

/external/pdfium/fxjs/
Dcjs_event.cpp56 CJS_Result CJS_Event::get_change(CJS_Runtime* pRuntime) { in get_change()
58 return CJS_Result::Success( in get_change()
62 CJS_Result CJS_Event::set_change(CJS_Runtime* pRuntime, in set_change()
68 return CJS_Result::Success(); in set_change()
71 CJS_Result CJS_Event::get_change_ex(CJS_Runtime* pRuntime) { in get_change_ex()
73 return CJS_Result::Success( in get_change_ex()
77 CJS_Result CJS_Event::set_change_ex(CJS_Runtime* pRuntime, in set_change_ex()
79 return CJS_Result::Failure(JSMessage::kNotSupportedError); in set_change_ex()
82 CJS_Result CJS_Event::get_commit_key(CJS_Runtime* pRuntime) { in get_commit_key()
84 return CJS_Result::Success(pRuntime->NewNumber(pEvent->CommitKey())); in get_commit_key()
[all …]
Dcjs_document.cpp141 CJS_Result CJS_Document::get_num_fields(CJS_Runtime* pRuntime) { in get_num_fields()
143 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_num_fields()
146 return CJS_Result::Success(pRuntime->NewNumber( in get_num_fields()
150 CJS_Result CJS_Document::set_num_fields(CJS_Runtime* pRuntime, in set_num_fields()
152 return CJS_Result::Failure(JSMessage::kReadOnlyError); in set_num_fields()
155 CJS_Result CJS_Document::get_dirty(CJS_Runtime* pRuntime) { in get_dirty()
157 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_dirty()
159 return CJS_Result::Success( in get_dirty()
163 CJS_Result CJS_Document::set_dirty(CJS_Runtime* pRuntime, in set_dirty()
166 return CJS_Result::Failure(JSMessage::kBadObjectError); in set_dirty()
[all …]
Dcjs_field.cpp684 CJS_Result CJS_Field::get_alignment(CJS_Runtime* pRuntime) { in get_alignment()
689 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_alignment()
692 return CJS_Result::Failure(JSMessage::kObjectTypeError); in get_alignment()
696 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_alignment()
700 return CJS_Result::Success(pRuntime->NewString("left")); in get_alignment()
702 return CJS_Result::Success(pRuntime->NewString("center")); in get_alignment()
704 return CJS_Result::Success(pRuntime->NewString("right")); in get_alignment()
706 return CJS_Result::Success(pRuntime->NewString("")); in get_alignment()
709 CJS_Result CJS_Field::set_alignment(CJS_Runtime* pRuntime, in set_alignment()
713 return CJS_Result::Failure(JSMessage::kReadOnlyError); in set_alignment()
[all …]
Dcjs_field.h122 CJS_Result get_text_color(CJS_Runtime* pRuntime);
123 CJS_Result set_text_color(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
131 CJS_Result get_alignment(CJS_Runtime* pRuntime);
132 CJS_Result set_alignment(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
134 CJS_Result get_border_style(CJS_Runtime* pRuntime);
135 CJS_Result set_border_style(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
137 CJS_Result get_button_align_x(CJS_Runtime* pRuntime);
138 CJS_Result set_button_align_x(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
140 CJS_Result get_button_align_y(CJS_Runtime* pRuntime);
141 CJS_Result set_button_align_y(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_document.h119 CJS_Result get_ADBE(CJS_Runtime* pRuntime);
120 CJS_Result set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
122 CJS_Result get_author(CJS_Runtime* pRuntime);
123 CJS_Result set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
125 CJS_Result get_base_URL(CJS_Runtime* pRuntime);
126 CJS_Result set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
128 CJS_Result get_bookmark_root(CJS_Runtime* pRuntime);
129 CJS_Result set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
131 CJS_Result get_calculate(CJS_Runtime* pRuntime);
132 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_app.cpp98 CJS_Result CJS_App::get_active_docs(CJS_Runtime* pRuntime) { in get_active_docs()
102 return CJS_Result::Failure(JSMessage::kObjectTypeError); in get_active_docs()
106 return CJS_Result::Success(aDocs); in get_active_docs()
108 return CJS_Result::Success(pRuntime->NewUndefined()); in get_active_docs()
111 CJS_Result CJS_App::set_active_docs(CJS_Runtime* pRuntime, in set_active_docs()
113 return CJS_Result::Failure(JSMessage::kNotSupportedError); in set_active_docs()
116 CJS_Result CJS_App::get_calculate(CJS_Runtime* pRuntime) { in get_calculate()
117 return CJS_Result::Success(pRuntime->NewBoolean(m_bCalculate)); in get_calculate()
120 CJS_Result CJS_App::set_calculate(CJS_Runtime* pRuntime, in set_calculate()
125 return CJS_Result::Success(); in set_calculate()
[all …]
Dcjs_event.h47 CJS_Result get_change(CJS_Runtime* pRuntime);
48 CJS_Result set_change(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
50 CJS_Result get_change_ex(CJS_Runtime* pRuntime);
51 CJS_Result set_change_ex(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
53 CJS_Result get_commit_key(CJS_Runtime* pRuntime);
54 CJS_Result set_commit_key(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
56 CJS_Result get_field_full(CJS_Runtime* pRuntime);
57 CJS_Result set_field_full(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
59 CJS_Result get_key_down(CJS_Runtime* pRuntime);
60 CJS_Result set_key_down(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_app.h74 CJS_Result get_active_docs(CJS_Runtime* pRuntime);
75 CJS_Result set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
77 CJS_Result get_calculate(CJS_Runtime* pRuntime);
78 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
80 CJS_Result get_forms_version(CJS_Runtime* pRuntime);
81 CJS_Result set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
83 CJS_Result get_fs(CJS_Runtime* pRuntime);
84 CJS_Result set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
86 CJS_Result get_fullscreen(CJS_Runtime* pRuntime);
87 CJS_Result set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_color.h50 CJS_Result get_black(CJS_Runtime* pRuntime);
51 CJS_Result set_black(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
53 CJS_Result get_blue(CJS_Runtime* pRuntime);
54 CJS_Result set_blue(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
56 CJS_Result get_cyan(CJS_Runtime* pRuntime);
57 CJS_Result set_cyan(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
59 CJS_Result get_dark_gray(CJS_Runtime* pRuntime);
60 CJS_Result set_dark_gray(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
62 CJS_Result get_gray(CJS_Runtime* pRuntime);
63 CJS_Result set_gray(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_result.cpp9 CJS_Result::CJS_Result() = default;
11 CJS_Result::CJS_Result(v8::Local<v8::Value> ret) : return_(ret) {} in CJS_Result() function in CJS_Result
13 CJS_Result::CJS_Result(const WideString& err) : error_(err) {} in CJS_Result() function in CJS_Result
15 CJS_Result::CJS_Result(JSMessage id) : CJS_Result(JSGetStringFromID(id)) {} in CJS_Result() function in CJS_Result
17 CJS_Result::CJS_Result(const CJS_Result&) = default;
19 CJS_Result::~CJS_Result() = default;
Dcjs_result.h14 class CJS_Result {
27 [[nodiscard]] static CJS_Result Success() { return CJS_Result(); } in Success()
28 [[nodiscard]] static CJS_Result Success(v8::Local<v8::Value> value) { in Success()
29 return CJS_Result(value); in Success()
31 [[nodiscard]] static CJS_Result Failure(const WideString& str) { in Failure()
32 return CJS_Result(str); in Failure()
34 [[nodiscard]] static CJS_Result Failure(JSMessage id) { in Failure()
35 return CJS_Result(id); in Failure()
38 CJS_Result(const CJS_Result&);
39 ~CJS_Result();
[all …]
Dcjs_color.cpp147 CJS_Result CJS_Color::get_transparent(CJS_Runtime* pRuntime) { in get_transparent()
151 CJS_Result CJS_Color::set_transparent(CJS_Runtime* pRuntime, in set_transparent()
156 CJS_Result CJS_Color::get_black(CJS_Runtime* pRuntime) { in get_black()
160 CJS_Result CJS_Color::set_black(CJS_Runtime* pRuntime, in set_black()
165 CJS_Result CJS_Color::get_white(CJS_Runtime* pRuntime) { in get_white()
169 CJS_Result CJS_Color::set_white(CJS_Runtime* pRuntime, in set_white()
174 CJS_Result CJS_Color::get_red(CJS_Runtime* pRuntime) { in get_red()
178 CJS_Result CJS_Color::set_red(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_red()
182 CJS_Result CJS_Color::get_green(CJS_Runtime* pRuntime) { in get_green()
186 CJS_Result CJS_Color::set_green(CJS_Runtime* pRuntime, in set_green()
[all …]
Dcjs_annot.cpp45 CJS_Result CJS_Annot::get_hidden(CJS_Runtime* pRuntime) { in get_hidden()
47 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_hidden()
50 return CJS_Result::Success(pRuntime->NewBoolean(pPDFAnnot->IsHidden())); in get_hidden()
53 CJS_Result CJS_Annot::set_hidden(CJS_Runtime* pRuntime, in set_hidden()
60 return CJS_Result::Failure(JSMessage::kBadObjectError); in set_hidden()
75 return CJS_Result::Success(); in set_hidden()
78 CJS_Result CJS_Annot::get_name(CJS_Runtime* pRuntime) { in get_name()
81 return CJS_Result::Failure(JSMessage::kBadObjectError); in get_name()
83 return CJS_Result::Success( in get_name()
87 CJS_Result CJS_Annot::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name()
[all …]
Dcjs_publicmethods.cpp143 template <CJS_Result (*F)(CJS_Runtime*,
160 CJS_Result result = (*F)(pRuntime, parameters); in JSGlobalFunc()
593 CJS_Result CJS_PublicMethods::AFNumber_Format( in AFNumber_Format()
598 return CJS_Result::Failure(JSMessage::kParamError); in AFNumber_Format()
602 return CJS_Result::Failure(WideString::FromASCII("No event handler")); in AFNumber_Format()
607 return CJS_Result::Success(); in AFNumber_Format()
684 CJS_Result result = fTarget->get_text_color(pRuntime); in AFNumber_Format()
695 return CJS_Result::Success(); in AFNumber_Format()
700 CJS_Result CJS_PublicMethods::AFNumber_Keystroke( in AFNumber_Keystroke()
704 return CJS_Result::Failure(JSMessage::kParamError); in AFNumber_Keystroke()
[all …]
Dcjs_publicmethods.h35 static CJS_Result AFNumber_Format(
38 static CJS_Result AFNumber_Keystroke(
41 static CJS_Result AFPercent_Format(
44 static CJS_Result AFPercent_Keystroke(
47 static CJS_Result AFDate_FormatEx(
50 static CJS_Result AFDate_KeystrokeEx(
53 static CJS_Result AFDate_Format(
56 static CJS_Result AFDate_Keystroke(
59 static CJS_Result AFTime_FormatEx(
62 static CJS_Result AFTime_KeystrokeEx(
[all …]
/external/pdfium/fxjs/xfa/
Dcjx_source.cpp44 CJS_Result CJX_Source::next(CFXJSE_Engine* runtime, in next()
47 return CJS_Result::Failure(JSMessage::kParamError); in next()
49 return CJS_Result::Success(); in next()
52 CJS_Result CJX_Source::cancelBatch( in cancelBatch()
56 return CJS_Result::Failure(JSMessage::kParamError); in cancelBatch()
58 return CJS_Result::Success(); in cancelBatch()
61 CJS_Result CJX_Source::first(CFXJSE_Engine* runtime, in first()
64 return CJS_Result::Failure(JSMessage::kParamError); in first()
66 return CJS_Result::Success(); in first()
69 CJS_Result CJX_Source::updateBatch( in updateBatch()
[all …]
Dcjx_field.cpp48 CJS_Result CJX_Field::clearItems( in clearItems()
54 return CJS_Result::Success(); in clearItems()
57 CJS_Result CJX_Field::execEvent( in execEvent()
61 return CJS_Result::Failure(JSMessage::kParamError); in execEvent()
67 return CJS_Result::Success(); in execEvent()
69 return CJS_Result::Success( in execEvent()
73 CJS_Result CJX_Field::execInitialize( in execInitialize()
77 return CJS_Result::Failure(JSMessage::kParamError); in execInitialize()
84 return CJS_Result::Success(); in execInitialize()
87 CJS_Result CJX_Field::deleteItem( in deleteItem()
[all …]
Dcjx_template.cpp36 CJS_Result CJX_Template::formNodes( in formNodes()
40 return CJS_Result::Failure(JSMessage::kParamError); in formNodes()
42 return CJS_Result::Success(runtime->NewBoolean(true)); in formNodes()
45 CJS_Result CJX_Template::remerge( in remerge()
49 return CJS_Result::Failure(JSMessage::kParamError); in remerge()
52 return CJS_Result::Success(); in remerge()
55 CJS_Result CJX_Template::execInitialize( in execInitialize()
59 return CJS_Result::Failure(JSMessage::kParamError); in execInitialize()
61 return CJS_Result::Success( in execInitialize()
65 CJS_Result CJX_Template::recalculate( in recalculate()
[all …]
Dcjx_hostpseudomodel.cpp259 CJS_Result CJX_HostPseudoModel::gotoURL( in gotoURL()
263 return CJS_Result::Success(); in gotoURL()
266 return CJS_Result::Failure(JSMessage::kParamError); in gotoURL()
270 return CJS_Result::Success(); in gotoURL()
273 return CJS_Result::Success(); in gotoURL()
276 CJS_Result CJX_HostPseudoModel::openList( in openList()
280 return CJS_Result::Success(); in openList()
283 return CJS_Result::Failure(JSMessage::kParamError); in openList()
287 return CJS_Result::Success(); in openList()
296 return CJS_Result::Success(); in openList()
[all …]
Dcjx_form.cpp41 CJS_Result CJX_Form::formNodes( in formNodes()
45 return CJS_Result::Failure(JSMessage::kParamError); in formNodes()
49 return CJS_Result::Failure(JSMessage::kValueError); in formNodes()
57 return CJS_Result::Success(value); in formNodes()
60 CJS_Result CJX_Form::remerge(CFXJSE_Engine* runtime, in remerge()
63 return CJS_Result::Failure(JSMessage::kParamError); in remerge()
66 return CJS_Result::Success(); in remerge()
69 CJS_Result CJX_Form::execInitialize( in execInitialize()
73 return CJS_Result::Failure(JSMessage::kParamError); in execInitialize()
79 return CJS_Result::Success(); in execInitialize()
[all …]
Dcjx_list.cpp41 CJS_Result CJX_List::append(CFXJSE_Engine* runtime, in append()
44 return CJS_Result::Failure(JSMessage::kParamError); in append()
48 return CJS_Result::Failure(JSMessage::kValueError); in append()
51 return CJS_Result::Failure(JSMessage::kWouldBeCyclic); in append()
53 return CJS_Result::Success(); in append()
56 CJS_Result CJX_List::insert(CFXJSE_Engine* runtime, in insert()
59 return CJS_Result::Failure(JSMessage::kParamError); in insert()
63 return CJS_Result::Failure(JSMessage::kValueError); in insert()
67 return CJS_Result::Failure(JSMessage::kValueError); in insert()
69 return CJS_Result::Success(); in insert()
[all …]
Dcjx_layoutpseudomodel.cpp85 CJS_Result CJX_LayoutPseudoModel::DoHWXYInternal( in DoHWXYInternal()
90 return CJS_Result::Failure(JSMessage::kParamError); in DoHWXYInternal()
94 return CJS_Result::Success(); in DoHWXYInternal()
107 return CJS_Result::Success(); in DoHWXYInternal()
115 return CJS_Result::Success(runtime->NewNumber(0.0)); in DoHWXYInternal()
136 return CJS_Result::Failure(JSMessage::kValueError); in DoHWXYInternal()
139 return CJS_Result::Success( in DoHWXYInternal()
143 CJS_Result CJX_LayoutPseudoModel::h( in h()
149 CJS_Result CJX_LayoutPseudoModel::w( in w()
155 CJS_Result CJX_LayoutPseudoModel::x( in x()
[all …]
Dcjx_exclgroup.cpp39 CJS_Result CJX_ExclGroup::execEvent( in execEvent()
43 return CJS_Result::Failure(JSMessage::kParamError); in execEvent()
47 return CJS_Result::Success(); in execEvent()
50 CJS_Result CJX_ExclGroup::execInitialize( in execInitialize()
54 return CJS_Result::Failure(JSMessage::kParamError); in execInitialize()
60 return CJS_Result::Success(); in execInitialize()
63 CJS_Result CJX_ExclGroup::execCalculate( in execCalculate()
67 return CJS_Result::Failure(JSMessage::kParamError); in execCalculate()
73 return CJS_Result::Success(); in execCalculate()
76 CJS_Result CJX_ExclGroup::execValidate( in execValidate()
[all …]
Dcjx_node.cpp115 CJS_Result CJX_Node::applyXSL(CFXJSE_Engine* runtime, in applyXSL()
118 return CJS_Result::Failure(JSMessage::kParamError); in applyXSL()
121 return CJS_Result::Success(); in applyXSL()
124 CJS_Result CJX_Node::assignNode( in assignNode()
128 return CJS_Result::Failure(JSMessage::kParamError); in assignNode()
131 return CJS_Result::Success(); in assignNode()
134 CJS_Result CJX_Node::clone(CFXJSE_Engine* runtime, in clone()
137 return CJS_Result::Failure(JSMessage::kParamError); in clone()
140 return CJS_Result::Success( in clone()
145 CJS_Result CJX_Node::getAttribute( in getAttribute()
[all …]
Dcjx_signaturepseudomodel.cpp35 CJS_Result CJX_SignaturePseudoModel::verifySignature( in verifySignature()
39 return CJS_Result::Failure(JSMessage::kParamError); in verifySignature()
41 return CJS_Result::Success(runtime->NewNumber(0)); in verifySignature()
44 CJS_Result CJX_SignaturePseudoModel::sign( in sign()
48 return CJS_Result::Failure(JSMessage::kParamError); in sign()
50 return CJS_Result::Success(runtime->NewBoolean(false)); in sign()
53 CJS_Result CJX_SignaturePseudoModel::enumerate( in enumerate()
57 return CJS_Result::Failure(JSMessage::kParamError); in enumerate()
59 return CJS_Result::Success(); in enumerate()
62 CJS_Result CJX_SignaturePseudoModel::clear( in clear()
[all …]

123