From d75b8537a1286af979b0d0fb19988a29af7c4a33 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 10 Dec 2015 15:53:30 -0800 Subject: Convert last batch of casts in fwl. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1512423003 . --- xfa/include/fwl/core/fwl_note.h | 2 ++ xfa/include/fwl/lightwidget/barcode.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'xfa/include') diff --git a/xfa/include/fwl/core/fwl_note.h b/xfa/include/fwl/core/fwl_note.h index a838d8047f..bd230d28cc 100644 --- a/xfa/include/fwl/core/fwl_note.h +++ b/xfa/include/fwl/core/fwl_note.h @@ -340,7 +340,9 @@ class IFWL_NoteDriver { virtual IFWL_NoteThread* GetOwnerThread() const = 0; virtual FWL_ERR PushNoteLoop(IFWL_NoteLoop* pNoteLoop) = 0; virtual IFWL_NoteLoop* PopNoteLoop() = 0; + virtual IFWL_Widget* GetFocus() = 0; virtual FX_BOOL SetFocus(IFWL_Widget* pFocus, FX_BOOL bNotify = FALSE) = 0; + virtual void SetGrab(IFWL_Widget* pGrab, FX_BOOL bSet) = 0; virtual FWL_ERR Run() = 0; }; IFWL_Widget* FWL_GetCurrentThreadModalWidget(IFWL_NoteThread* pNoteThread); diff --git a/xfa/include/fwl/lightwidget/barcode.h b/xfa/include/fwl/lightwidget/barcode.h index 447a403f2e..40c767dff8 100644 --- a/xfa/include/fwl/lightwidget/barcode.h +++ b/xfa/include/fwl/lightwidget/barcode.h @@ -35,7 +35,7 @@ class CFWL_Barcode : public CFWL_Edit { void SetDataLength(int32_t dataLength) { m_barcodeData.m_dwAttributeMask |= FWL_BCDATTRIBUTE_DATALENGTH; m_barcodeData.m_nDataLength = dataLength; - ((IFWL_Barcode*)m_pIface)->SetLimit(dataLength); + static_cast(m_pIface)->SetLimit(dataLength); } void SetCalChecksum(int32_t calChecksum) { m_barcodeData.m_dwAttributeMask |= FWL_BCDATTRIBUTE_CALCHECKSUM; -- cgit v1.2.3