diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-10-05 20:43:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-05 20:43:46 +0000 |
commit | 06f3042167126d60184dc3c401e71924cf3b46af (patch) | |
tree | 87c5478a50178cf32a9ca761362b83db254a3ebf /fxjs | |
parent | 66095ebfb9fe0b522e56753b7d1b997e65b8b219 (diff) | |
download | pdfium-06f3042167126d60184dc3c401e71924cf3b46af.tar.xz |
Remove SetSaveCalled API
This was meant to be part of a mechanism to alert users that entered
data into a PDF form was not going to actually be saved how they would
expect. The UI for this is blocked on a bug in V8, and is now being
superseded by work to correctly implement saving.
BUG=pdfium:953
Change-Id: Id9c85c109a3f6a6b4ee69d35f366006be4dc9c32
Reviewed-on: https://pdfium-review.googlesource.com/c/43552
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r-- | fxjs/cjs_app.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fxjs/cjs_app.cpp b/fxjs/cjs_app.cpp index 12bb8ddc84..08d4e4e1c8 100644 --- a/fxjs/cjs_app.cpp +++ b/fxjs/cjs_app.cpp @@ -405,12 +405,6 @@ void CJS_App::ClearTimerCommon(CJS_Runtime* pRuntime, CJS_Result CJS_App::execMenuItem( CJS_Runtime* pRuntime, const std::vector<v8::Local<v8::Value>>& params) { - if (params.size() > 0 && IsTypeKnown(params[0])) { - WideString item = pRuntime->ToWideString(params[0]); - if (item == L"SaveAs" && pRuntime->GetFormFillEnv()) - pRuntime->GetFormFillEnv()->SaveCalled(); - } - return CJS_Result::Failure(JSMessage::kNotSupportedError); } |