[Merge to XFA] Add type cast definitions for CPDF_Boolean.
authorDan Sinclair <dsinclair@chromium.org>
Tue, 20 Oct 2015 20:44:57 +0000 (16:44 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Tue, 20 Oct 2015 20:44:57 +0000 (16:44 -0400)
commit05d9e934b74c2d4e4f2983cb8d31e995a18cbe6a
tree928a7ccab88e351df14ae1e0cbff3c7c8fad3c89
parentf1251c1ff2b3452854681d0648b4c1ca4180ff0d
[Merge to XFA] Add type cast definitions for CPDF_Boolean.

This CL adds ToBoolean, CPDF_Object::AsBoolean and CPDF_Object::IsBoolean and
updates the src to use them as needed.

BUG=pdfium:201
TBR=thestig@chromium.org, tsepez@chromium.org

Review URL: https://codereview.chromium.org/1417623005 .

(cherry picked from commit ce4f95d61f5aa5fb9a5fc6cb8487999a9cf46458)

Review URL: https://codereview.chromium.org/1419663004 .
core/include/fpdfapi/fpdf_objects.h
core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
fpdfsdk/src/javascript/Document.cpp