From aee0db0e6a12bdaacebeb8fb791f4e0d45e18a0d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 21 Sep 2017 16:53:58 -0400 Subject: Move CFX_UnownedPtr to UnownedPtr This CL moves CFX_UnownedPtr to UnownedPtr and places in the fxcrt namespace. Bug: pdfium:898 Change-Id: I6d1fa463f365e5cb3aafa8c8a7a5f7eff62ed8e0 Reviewed-on: https://pdfium-review.googlesource.com/14620 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fpdfsdk/pwl/cpwl_appstream.h | 6 +++--- fpdfsdk/pwl/cpwl_combo_box.h | 12 ++++++------ fpdfsdk/pwl/cpwl_edit.h | 6 +++--- fpdfsdk/pwl/cpwl_edit_impl.h | 20 ++++++++++---------- fpdfsdk/pwl/cpwl_font_map.h | 2 +- fpdfsdk/pwl/cpwl_icon.h | 6 +++--- fpdfsdk/pwl/cpwl_list_box.h | 8 ++++---- fpdfsdk/pwl/cpwl_list_impl.h | 6 +++--- fpdfsdk/pwl/cpwl_scroll_bar.h | 8 ++++---- fpdfsdk/pwl/cpwl_timer.h | 6 +++--- fpdfsdk/pwl/cpwl_wnd.cpp | 6 +++--- fpdfsdk/pwl/cpwl_wnd.h | 8 ++++---- 12 files changed, 47 insertions(+), 47 deletions(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_appstream.h b/fpdfsdk/pwl/cpwl_appstream.h index d73e3aa0a7..810e79c9e7 100644 --- a/fpdfsdk/pwl/cpwl_appstream.h +++ b/fpdfsdk/pwl/cpwl_appstream.h @@ -7,8 +7,8 @@ #ifndef FPDFSDK_PWL_CPWL_APPSTREAM_H_ #define FPDFSDK_PWL_CPWL_APPSTREAM_H_ -#include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_string.h" +#include "core/fxcrt/unowned_ptr.h" class CPDFSDK_Widget; class CPDF_Dictionary; @@ -36,8 +36,8 @@ class CPWL_AppStream { ByteString GetBackgroundAppStream() const; ByteString GetBorderAppStream() const; - CFX_UnownedPtr widget_; - CFX_UnownedPtr dict_; + UnownedPtr widget_; + UnownedPtr dict_; }; #endif // FPDFSDK_PWL_CPWL_APPSTREAM_H_ diff --git a/fpdfsdk/pwl/cpwl_combo_box.h b/fpdfsdk/pwl/cpwl_combo_box.h index c9fa2cda4b..d8e384e501 100644 --- a/fpdfsdk/pwl/cpwl_combo_box.h +++ b/fpdfsdk/pwl/cpwl_combo_box.h @@ -9,7 +9,7 @@ #include -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/pwl/cpwl_edit.h" #include "fpdfsdk/pwl/cpwl_list_box.h" #include "fpdfsdk/pwl/cpwl_wnd.h" @@ -89,15 +89,15 @@ class CPWL_ComboBox : public CPWL_Wnd { void CreateListBox(const CreateParams& cp); void SetPopup(bool bPopup); - CFX_UnownedPtr m_pEdit; - CFX_UnownedPtr m_pButton; - CFX_UnownedPtr m_pList; + UnownedPtr m_pEdit; + UnownedPtr m_pButton; + UnownedPtr m_pList; CFX_FloatRect m_rcOldWindow; bool m_bPopup = false; bool m_bBottom = true; int32_t m_nSelectItem = -1; - CFX_UnownedPtr m_pFillerNotify; - CFX_UnownedPtr m_pFormFiller; + UnownedPtr m_pFillerNotify; + UnownedPtr m_pFormFiller; }; #endif // FPDFSDK_PWL_CPWL_COMBO_BOX_H_ diff --git a/fpdfsdk/pwl/cpwl_edit.h b/fpdfsdk/pwl/cpwl_edit.h index d61b94730e..d093f44d84 100644 --- a/fpdfsdk/pwl/cpwl_edit.h +++ b/fpdfsdk/pwl/cpwl_edit.h @@ -10,7 +10,7 @@ #include #include "core/fpdfdoc/cpvt_wordrange.h" -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/pwl/cpwl_edit_ctrl.h" #define PWL_CLASSNAME_EDIT "CPWL_Edit" @@ -129,8 +129,8 @@ class CPWL_Edit : public CPWL_EditCtrl { bool m_bFocus; CFX_FloatRect m_rcOldWindow; - CFX_UnownedPtr m_pFillerNotify; - CFX_UnownedPtr m_pFormFiller; + UnownedPtr m_pFillerNotify; + UnownedPtr m_pFormFiller; }; #endif // FPDFSDK_PWL_CPWL_EDIT_H_ diff --git a/fpdfsdk/pwl/cpwl_edit_impl.h b/fpdfsdk/pwl/cpwl_edit_impl.h index a63b22cd10..76f756eb1c 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.h +++ b/fpdfsdk/pwl/cpwl_edit_impl.h @@ -13,7 +13,7 @@ #include "core/fpdfdoc/cpvt_secprops.h" #include "core/fpdfdoc/cpvt_wordprops.h" -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" #define FX_EDIT_ISLATINWORD(u) \ (u == 0x2D || (u <= 0x005A && u >= 0x0041) || \ @@ -144,7 +144,7 @@ class CFXEU_InsertWord : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; @@ -167,7 +167,7 @@ class CFXEU_InsertReturn : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; @@ -191,7 +191,7 @@ class CFXEU_Backspace : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; @@ -218,7 +218,7 @@ class CFXEU_Delete : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; @@ -241,7 +241,7 @@ class CFXEU_Clear : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordRange m_wrSel; WideString m_swText; @@ -261,7 +261,7 @@ class CFXEU_InsertText : public IFX_Edit_UndoItem { void Undo() override; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; @@ -430,8 +430,8 @@ class CPWL_EditImpl { private: std::unique_ptr m_pVT; - CFX_UnownedPtr m_pNotify; - CFX_UnownedPtr m_pOperationNotify; + UnownedPtr m_pNotify; + UnownedPtr m_pOperationNotify; std::unique_ptr m_pVTProvider; CPVT_WordPlace m_wpCaret; CPVT_WordPlace m_wpOldCaret; @@ -466,7 +466,7 @@ class CPWL_EditImpl_Iterator { const CPVT_WordPlace& GetAt() const; private: - CFX_UnownedPtr m_pEdit; + UnownedPtr m_pEdit; CPDF_VariableText::Iterator* m_pVTIterator; }; diff --git a/fpdfsdk/pwl/cpwl_font_map.h b/fpdfsdk/pwl/cpwl_font_map.h index 5336949399..0712bf1240 100644 --- a/fpdfsdk/pwl/cpwl_font_map.h +++ b/fpdfsdk/pwl/cpwl_font_map.h @@ -88,7 +88,7 @@ class CPWL_FontMap : public IPVT_FontMap { uint8_t nCharset); std::unique_ptr m_pPDFDoc; - CFX_UnownedPtr const m_pSystemHandler; + UnownedPtr const m_pSystemHandler; }; #endif // FPDFSDK_PWL_CPWL_FONT_MAP_H_ diff --git a/fpdfsdk/pwl/cpwl_icon.h b/fpdfsdk/pwl/cpwl_icon.h index e2f792b9d5..df88465a5a 100644 --- a/fpdfsdk/pwl/cpwl_icon.h +++ b/fpdfsdk/pwl/cpwl_icon.h @@ -9,8 +9,8 @@ #include -#include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_string.h" +#include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/pwl/cpwl_wnd.h" class CPWL_Icon : public CPWL_Wnd { @@ -37,8 +37,8 @@ class CPWL_Icon : public CPWL_Wnd { // width, height std::pair GetImageSize(); - CFX_UnownedPtr m_pPDFStream; - CFX_UnownedPtr m_pIconFit; + UnownedPtr m_pPDFStream; + UnownedPtr m_pIconFit; }; #endif // FPDFSDK_PWL_CPWL_ICON_H_ diff --git a/fpdfsdk/pwl/cpwl_list_box.h b/fpdfsdk/pwl/cpwl_list_box.h index 1e028f7299..fec4d63a0c 100644 --- a/fpdfsdk/pwl/cpwl_list_box.h +++ b/fpdfsdk/pwl/cpwl_list_box.h @@ -9,7 +9,7 @@ #include -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/pwl/cpwl_wnd.h" class CPWL_ListCtrl; @@ -35,7 +35,7 @@ class CPWL_List_Notify { void IOnInvalidateRect(CFX_FloatRect* pRect); private: - CFX_UnownedPtr m_pList; + UnownedPtr m_pList; }; class CPWL_ListBox : public CPWL_Wnd { @@ -101,10 +101,10 @@ class CPWL_ListBox : public CPWL_Wnd { std::unique_ptr m_pListNotify; bool m_bMouseDown; bool m_bHoverSel; - CFX_UnownedPtr m_pFillerNotify; + UnownedPtr m_pFillerNotify; private: - CFX_UnownedPtr m_pFormFiller; + UnownedPtr m_pFormFiller; }; #endif // FPDFSDK_PWL_CPWL_LIST_BOX_H_ diff --git a/fpdfsdk/pwl/cpwl_list_impl.h b/fpdfsdk/pwl/cpwl_list_impl.h index 18ca0a3a15..e39a9c8b20 100644 --- a/fpdfsdk/pwl/cpwl_list_impl.h +++ b/fpdfsdk/pwl/cpwl_list_impl.h @@ -11,9 +11,9 @@ #include #include -#include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" +#include "core/fxcrt/unowned_ptr.h" class CPWL_EditImpl; class CPWL_EditImpl_Iterator; @@ -152,7 +152,7 @@ class CPWL_ListCtrl { CFX_FloatRect m_rcPlate; CFX_FloatRect m_rcContent; - CFX_UnownedPtr m_pNotify; + UnownedPtr m_pNotify; bool m_bNotifyFlag; CFX_PointF m_ptScrollPos; CPLST_Select m_aSelItems; // for multiple @@ -162,7 +162,7 @@ class CPWL_ListCtrl { int32_t m_nCaretIndex; // for multiple std::vector> m_ListItems; float m_fFontSize; - CFX_UnownedPtr m_pFontMap; + UnownedPtr m_pFontMap; bool m_bMultiple; }; diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.h b/fpdfsdk/pwl/cpwl_scroll_bar.h index 48aef16e38..1e71e3b90f 100644 --- a/fpdfsdk/pwl/cpwl_scroll_bar.h +++ b/fpdfsdk/pwl/cpwl_scroll_bar.h @@ -7,7 +7,7 @@ #ifndef FPDFSDK_PWL_CPWL_SCROLL_BAR_H_ #define FPDFSDK_PWL_CPWL_SCROLL_BAR_H_ -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/pwl/cpwl_wnd.h" class CPWL_SBButton; @@ -170,9 +170,9 @@ class CPWL_ScrollBar : public CPWL_Wnd { PWL_SCROLLBAR_TYPE m_sbType; PWL_SCROLL_INFO m_OriginInfo; - CFX_UnownedPtr m_pMinButton; - CFX_UnownedPtr m_pMaxButton; - CFX_UnownedPtr m_pPosButton; + UnownedPtr m_pMinButton; + UnownedPtr m_pMaxButton; + UnownedPtr m_pPosButton; PWL_SCROLL_PRIVATEDATA m_sData; bool m_bMouseDown; bool m_bMinOrMax; diff --git a/fpdfsdk/pwl/cpwl_timer.h b/fpdfsdk/pwl/cpwl_timer.h index 4a07425993..6e082abd4b 100644 --- a/fpdfsdk/pwl/cpwl_timer.h +++ b/fpdfsdk/pwl/cpwl_timer.h @@ -7,7 +7,7 @@ #ifndef FPDFSDK_PWL_CPWL_TIMER_H_ #define FPDFSDK_PWL_CPWL_TIMER_H_ -#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/unowned_ptr.h" class CFX_SystemHandler; class CPWL_TimerHandler; @@ -24,8 +24,8 @@ class CPWL_Timer { private: int32_t m_nTimerID; - CFX_UnownedPtr m_pAttached; - CFX_UnownedPtr m_pSystemHandler; + UnownedPtr m_pAttached; + UnownedPtr m_pSystemHandler; }; #endif // FPDFSDK_PWL_CPWL_TIMER_H_ diff --git a/fpdfsdk/pwl/cpwl_wnd.cpp b/fpdfsdk/pwl/cpwl_wnd.cpp index 9abe03c3fb..d7eb853c8f 100644 --- a/fpdfsdk/pwl/cpwl_wnd.cpp +++ b/fpdfsdk/pwl/cpwl_wnd.cpp @@ -131,9 +131,9 @@ class CPWL_MsgControl : public Observable { private: std::vector m_aMousePath; std::vector m_aKeyboardPath; - CFX_UnownedPtr m_pCreatedWnd; - CFX_UnownedPtr m_pMainMouseWnd; - CFX_UnownedPtr m_pMainKeyboardWnd; + UnownedPtr m_pCreatedWnd; + UnownedPtr m_pMainMouseWnd; + UnownedPtr m_pMainKeyboardWnd; }; CPWL_Wnd::CPWL_Wnd() diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index ecef1e2e10..11b62b337c 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -11,8 +11,8 @@ #include #include "core/fpdfdoc/cpdf_formcontrol.h" -#include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/observable.h" +#include "core/fxcrt/unowned_ptr.h" #include "core/fxge/cfx_color.h" #include "fpdfsdk/cpdfsdk_formfillenvironment.h" #include "fpdfsdk/cpdfsdk_widget.h" @@ -131,7 +131,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { CFX_SystemHandler* pSystemHandler; // required IPVT_FontMap* pFontMap; // required ProviderIface::ObservedPtr pProvider; // required - CFX_UnownedPtr pFocusHandler; // optional + UnownedPtr pFocusHandler; // optional uint32_t dwFlags; // optional CFX_Color sBackgroundColor; // optional CPDFSDK_Widget::ObservedPtr pAttachedWidget; // required @@ -142,7 +142,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { int32_t nTransparency; // optional float fFontSize; // optional CPWL_Dash sDash; // optional - CFX_UnownedPtr pAttachedData; // optional + UnownedPtr pAttachedData; // optional CPWL_Wnd* pParentWnd; // ignore CPWL_MsgControl* pMsgControl; // ignore int32_t eCursorType; // ignore @@ -311,7 +311,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { CreateParams m_CreationParams; std::vector m_Children; - CFX_UnownedPtr m_pVScrollBar; + UnownedPtr m_pVScrollBar; CFX_FloatRect m_rcWindow; CFX_FloatRect m_rcClip; bool m_bCreated; -- cgit v1.2.3