From 8d2aae7ee320da3a8ffe01c57e38b3f98443257d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 27 Jul 2015 12:08:12 -0700 Subject: Revert "FX Bool considered harmful, part 3" This reverts commit ff46aaf499edcf153ee2f57c7016587aa96dcfa0. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1255293002 . --- fpdfsdk/include/javascript/JS_Value.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'fpdfsdk/include/javascript/JS_Value.h') diff --git a/fpdfsdk/include/javascript/JS_Value.h b/fpdfsdk/include/javascript/JS_Value.h index 035cef064d..6186817fa5 100644 --- a/fpdfsdk/include/javascript/JS_Value.h +++ b/fpdfsdk/include/javascript/JS_Value.h @@ -63,12 +63,12 @@ public: void operator = (const FX_CHAR* pStr); void operator = (CJS_Value value); - bool IsArrayObject() const; - bool IsDateObject() const; + FX_BOOL IsArrayObject() const; + FX_BOOL IsDateObject() const; FXJSVALUETYPE GetType() const; - bool ConvertToArray(CJS_Array &) const; - bool ConvertToDate(CJS_Date &) const; + FX_BOOL ConvertToArray(CJS_Array &) const; + FX_BOOL ConvertToDate(CJS_Date &) const; v8::Isolate* GetIsolate() {return m_isolate;} protected: @@ -95,8 +95,8 @@ public: CJS_PropValue(v8::Isolate* isolate); ~CJS_PropValue(); public: - bool IsSetting(); - bool IsGetting(); + FX_BOOL IsSetting(); + FX_BOOL IsGetting(); void operator<<(int); void operator>>(int&) const; void operator<<(bool); @@ -122,7 +122,7 @@ public: void StartSetting(); void StartGetting(); private: - bool m_bIsSetting; + FX_BOOL m_bIsSetting; }; class CJS_Array @@ -135,7 +135,7 @@ public: void GetElement(unsigned index,CJS_Value &value); void SetElement(unsigned index,CJS_Value value); int GetLength(); - bool IsAttached(); + FX_BOOL IsAttached(); operator v8::Local(); v8::Isolate* GetIsolate() {return m_isolate;} @@ -179,7 +179,7 @@ public: static double MakeDate(int year, int mon, int mday,int hour, int min, int sec,int ms); - bool IsValidDate(); + FX_BOOL IsValidDate(); protected: v8::Local m_pDate; -- cgit v1.2.3