| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 public: | 94 public: |
| 95 static IFWL_Custom* Create(); | 95 static IFWL_Custom* Create(); |
| 96 | 96 |
| 97 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | 97 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); |
| 98 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 98 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
| 99 IFWL_Widget* pOuter = NULL); | 99 IFWL_Widget* pOuter = NULL); |
| 100 FWL_ERR SetProxy(IFWL_Proxy* pProxy); | 100 FWL_ERR SetProxy(IFWL_Proxy* pProxy); |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 IFWL_Custom(); | 103 IFWL_Custom(); |
| 104 virtual ~IFWL_Custom(); | |
| 105 }; | 104 }; |
| 106 class IFWL_Proxy { | 105 class IFWL_Proxy { |
| 107 public: | 106 public: |
| 108 virtual ~IFWL_Proxy() {} | 107 virtual ~IFWL_Proxy() {} |
| 109 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0; | 108 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0; |
| 110 virtual FWL_ERR Update() = 0; | 109 virtual FWL_ERR Update() = 0; |
| 111 }; | 110 }; |
| 112 #define FWL_ACCEL_Control (1L << 0) | 111 #define FWL_ACCEL_Control (1L << 0) |
| 113 #define FWL_ACCEL_Alt (1L << 1) | 112 #define FWL_ACCEL_Alt (1L << 1) |
| 114 #define FWL_ACCEL_Shift (1L << 2) | 113 #define FWL_ACCEL_Shift (1L << 2) |
| 115 #define FWL_ACCEL_VirtKey (1L << 3) | 114 #define FWL_ACCEL_VirtKey (1L << 3) |
| 116 typedef struct _FWL_ACCEL { | 115 typedef struct _FWL_ACCEL { |
| 117 FX_DWORD dwKey; | 116 FX_DWORD dwKey; |
| 118 FX_DWORD dwCmd; | 117 FX_DWORD dwCmd; |
| 119 } FWL_ACCEL; | 118 } FWL_ACCEL; |
| 120 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; | 119 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; |
| 121 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); | 120 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); |
| 122 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); | 121 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); |
| 123 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, | 122 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, |
| 124 CFX_MapAccelerators* pMapAccel); | 123 CFX_MapAccelerators* pMapAccel); |
| 125 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); | 124 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); |
| 126 #endif | 125 #endif |
| OLD | NEW |