| 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_IFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class CFWL_WidgetImp; | 52 class CFWL_WidgetImp; |
| 53 class CFX_Graphics; | 53 class CFX_Graphics; |
| 54 class IFWL_App; | 54 class IFWL_App; |
| 55 class IFWL_DataProvider; | 55 class IFWL_DataProvider; |
| 56 class IFWL_Form; | 56 class IFWL_Form; |
| 57 class IFWL_ThemeProvider; | 57 class IFWL_ThemeProvider; |
| 58 class IFWL_WidgetDelegate; | 58 class IFWL_WidgetDelegate; |
| 59 | 59 |
| 60 class IFWL_Widget { | 60 class IFWL_Widget { |
| 61 public: | 61 public: |
| 62 IFWL_Widget() : m_pImpl(nullptr) {} | 62 IFWL_Widget(); |
| 63 virtual ~IFWL_Widget(); | 63 virtual ~IFWL_Widget(); |
| 64 | 64 |
| 65 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 65 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
| 66 FWL_Error GetGlobalRect(CFX_RectF& rect); | 66 FWL_Error GetGlobalRect(CFX_RectF& rect); |
| 67 FWL_Error SetWidgetRect(const CFX_RectF& rect); | 67 FWL_Error SetWidgetRect(const CFX_RectF& rect); |
| 68 FWL_Error GetClientRect(CFX_RectF& rect); | 68 FWL_Error GetClientRect(CFX_RectF& rect); |
| 69 IFWL_Widget* GetParent(); | 69 IFWL_Widget* GetParent(); |
| 70 FWL_Error SetParent(IFWL_Widget* pParent); | 70 FWL_Error SetParent(IFWL_Widget* pParent); |
| 71 IFWL_Widget* GetOwner(); | 71 IFWL_Widget* GetOwner(); |
| 72 FWL_Error SetOwner(IFWL_Widget* pOwner); | 72 FWL_Error SetOwner(IFWL_Widget* pOwner); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 protected: | 114 protected: |
| 115 // Takes ownership of |pImpl|. | 115 // Takes ownership of |pImpl|. |
| 116 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } | 116 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 std::unique_ptr<CFWL_WidgetImp> m_pImpl; | 119 std::unique_ptr<CFWL_WidgetImp> m_pImpl; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 122 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
| OLD | NEW |