| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _FWL_WIDGET_H | 7 #ifndef _FWL_WIDGET_H |
| 8 #define _FWL_WIDGET_H | 8 #define _FWL_WIDGET_H |
| 9 class IFWL_Target; | 9 class IFWL_Target; |
| 10 class IFWL_ThemeProvider; | 10 class IFWL_ThemeProvider; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 IFWL_NoteThread* GetOwnerThread() const; | 56 IFWL_NoteThread* GetOwnerThread() const; |
| 57 CFX_SizeF GetOffsetFromParent(IFWL_Widget *pParent
); | 57 CFX_SizeF GetOffsetFromParent(IFWL_Widget *pParent
); |
| 58 }; | 58 }; |
| 59 class IFWL_WidgetDelegate | 59 class IFWL_WidgetDelegate |
| 60 { | 60 { |
| 61 public: | 61 public: |
| 62 virtual FX_INT32 OnProcessMessage(CFWL_Message *pMessage) = 0; | 62 virtual FX_INT32 OnProcessMessage(CFWL_Message *pMessage) = 0; |
| 63 virtual FWL_ERR OnProcessEvent(CFWL_Event *pEvent) = 0; | 63 virtual FWL_ERR OnProcessEvent(CFWL_Event *pEvent) = 0; |
| 64 virtual FWL_ERR OnDrawWidget(CFX_Graphics *pGraphics, const CFX_
Matrix *pMatrix = NULL) = 0; | 64 virtual FWL_ERR OnDrawWidget(CFX_Graphics *pGraphics, const CFX_
Matrix *pMatrix = NULL) = 0; |
| 65 }; | 65 }; |
| 66 class CFWL_WidgetImpProperties : public CFX_Object | 66 class CFWL_WidgetImpProperties |
| 67 { | 67 { |
| 68 public: | 68 public: |
| 69 CFWL_WidgetImpProperties() | 69 CFWL_WidgetImpProperties() |
| 70 { | 70 { |
| 71 m_ctmOnParent.Reset(); | 71 m_ctmOnParent.Reset(); |
| 72 m_rtWidget.Set(0, 0, 0, 0); | 72 m_rtWidget.Set(0, 0, 0, 0); |
| 73 m_dwStyles = FWL_WGTSTYLE_Child; | 73 m_dwStyles = FWL_WGTSTYLE_Child; |
| 74 m_dwStyleExes = 0; | 74 m_dwStyleExes = 0; |
| 75 m_dwStates = 0; | 75 m_dwStates = 0; |
| 76 m_pThemeProvider = NULL; | 76 m_pThemeProvider = NULL; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 typedef struct _FWL_ACCEL { | 113 typedef struct _FWL_ACCEL { |
| 114 FX_DWORD dwKey; | 114 FX_DWORD dwKey; |
| 115 FX_DWORD dwCmd; | 115 FX_DWORD dwCmd; |
| 116 } FWL_ACCEL; | 116 } FWL_ACCEL; |
| 117 typedef CFX_MapPtrTemplate <FX_DWORD, FX_DWORD> CFX_MapAccelerators; | 117 typedef CFX_MapPtrTemplate <FX_DWORD, FX_DWORD> CFX_MapAccelerators; |
| 118 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators *pMapAccel); | 118 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators *pMapAccel); |
| 119 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators *pMapAccel); | 119 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators *pMapAccel); |
| 120 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form *pFrom, CFX_MapAccelerators *pMapAccel
); | 120 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form *pFrom, CFX_MapAccelerators *pMapAccel
); |
| 121 FWL_ERR FWL_EnabelWidget(IFWL_Widget *widget, FX_BOOL bEnable); | 121 FWL_ERR FWL_EnabelWidget(IFWL_Widget *widget, FX_BOOL bEnable); |
| 122 #endif | 122 #endif |
| OLD | NEW |