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 XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ |
8 #define XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ | 8 #define XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ |
9 | 9 |
10 #include "xfa/include/fwl/core/fwl_note.h" | 10 #include "xfa/include/fwl/core/fwl_note.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 protected: | 105 protected: |
106 IFWL_Custom(); | 106 IFWL_Custom(); |
107 }; | 107 }; |
108 class IFWL_Proxy { | 108 class IFWL_Proxy { |
109 public: | 109 public: |
110 virtual ~IFWL_Proxy() {} | 110 virtual ~IFWL_Proxy() {} |
111 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0; | 111 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0; |
112 virtual FWL_ERR Update() = 0; | 112 virtual FWL_ERR Update() = 0; |
113 }; | 113 }; |
114 #define FWL_ACCEL_Control (1L << 0) | |
115 #define FWL_ACCEL_Alt (1L << 1) | |
116 #define FWL_ACCEL_Shift (1L << 2) | |
117 #define FWL_ACCEL_VirtKey (1L << 3) | |
118 typedef struct _FWL_ACCEL { | |
119 FX_DWORD dwKey; | |
120 FX_DWORD dwCmd; | |
121 } FWL_ACCEL; | |
122 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; | 114 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; |
123 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); | 115 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); |
124 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); | 116 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); |
125 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, | 117 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, |
126 CFX_MapAccelerators* pMapAccel); | 118 CFX_MapAccelerators* pMapAccel); |
127 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); | 119 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); |
128 | 120 |
129 #endif // XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ | 121 #endif // XFA_INCLUDE_FWL_CORE_FWL_WIDGET_H_ |
OLD | NEW |