| 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_FWL_CORE_CFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ | 8 #define XFA_FWL_CFWL_WIDGET_H_ |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/fxcrt/fx_coordinates.h" | 11 #include "core/fxcrt/fx_coordinates.h" |
| 12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
| 13 #include "xfa/fwl/core/cfwl_event.h" | 13 #include "xfa/fwl/cfwl_event.h" |
| 14 #include "xfa/fwl/core/cfwl_themepart.h" | 14 #include "xfa/fwl/cfwl_themepart.h" |
| 15 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 15 #include "xfa/fwl/cfwl_widgetmgr.h" |
| 16 #include "xfa/fwl/core/fwl_widgethit.h" | 16 #include "xfa/fwl/fwl_widgethit.h" |
| 17 #include "xfa/fwl/core/ifwl_widgetdelegate.h" | 17 #include "xfa/fwl/ifwl_widgetdelegate.h" |
| 18 #include "xfa/fwl/theme/cfwl_widgettp.h" | 18 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 19 | 19 |
| 20 enum class FWL_Type { | 20 enum class FWL_Type { |
| 21 Unknown = 0, | 21 Unknown = 0, |
| 22 | 22 |
| 23 Barcode, | 23 Barcode, |
| 24 Caret, | 24 Caret, |
| 25 CheckBox, | 25 CheckBox, |
| 26 ComboBox, | 26 ComboBox, |
| 27 DateTimePicker, | 27 DateTimePicker, |
| 28 Edit, | 28 Edit, |
| 29 Form, | 29 Form, |
| 30 FormProxy, | 30 FormProxy, |
| 31 ListBox, | 31 ListBox, |
| 32 MonthCalendar, | 32 MonthCalendar, |
| 33 PictureBox, | 33 PictureBox, |
| 34 PushButton, | 34 PushButton, |
| 35 ScrollBar, | 35 ScrollBar, |
| 36 SpinButton, | 36 SpinButton, |
| 37 ToolTip | 37 ToolTip |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class CFWL_App; | 40 class CFWL_App; |
| 41 class CFWL_AppImp; | 41 class CFWL_AppImp; |
| 42 class CFWL_MsgKey; | 42 class CFWL_MessageKey; |
| 43 class CFWL_Widget; | 43 class CFWL_Widget; |
| 44 class CFWL_WidgetMgr; | 44 class CFWL_WidgetMgr; |
| 45 class CFWL_WidgetProperties; | 45 class CFWL_WidgetProperties; |
| 46 class IFWL_ThemeProvider; | 46 class IFWL_ThemeProvider; |
| 47 | 47 |
| 48 class CFWL_Widget : public IFWL_WidgetDelegate { | 48 class CFWL_Widget : public IFWL_WidgetDelegate { |
| 49 public: | 49 public: |
| 50 ~CFWL_Widget() override; | 50 ~CFWL_Widget() override; |
| 51 | 51 |
| 52 virtual FWL_Type GetClassID() const = 0; | 52 virtual FWL_Type GetClassID() const = 0; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 IFWL_ThemeProvider* pTheme, | 186 IFWL_ThemeProvider* pTheme, |
| 187 const CFX_Matrix* pMatrix); | 187 const CFX_Matrix* pMatrix); |
| 188 void NotifyDriver(); | 188 void NotifyDriver(); |
| 189 bool IsParent(CFWL_Widget* pParent); | 189 bool IsParent(CFWL_Widget* pParent); |
| 190 | 190 |
| 191 void* m_pLayoutItem; | 191 void* m_pLayoutItem; |
| 192 uint32_t m_nEventKey; | 192 uint32_t m_nEventKey; |
| 193 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 193 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ | 196 #endif // XFA_FWL_CFWL_WIDGET_H_ |
| OLD | NEW |