From 24ef63300f167ac63fb1f7fe8d3323ed6bce1695 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 24 Jul 2017 10:52:57 -0400 Subject: Move xfa/fxfa/app to xfa/fxfa There currently exists a weird split where some files exist in xfa/fxfa and some files exist in xfa/fxfa/app. This CL removes the app/ folder and moves all files up to the parent directory. Change-Id: I00c87851a1ebc5a7a636eb9a17b58ba3f1708a84 Reviewed-on: https://pdfium-review.googlesource.com/8810 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/app/cxfa_fwltheme.h | 70 -------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 xfa/fxfa/app/cxfa_fwltheme.h (limited to 'xfa/fxfa/app/cxfa_fwltheme.h') diff --git a/xfa/fxfa/app/cxfa_fwltheme.h b/xfa/fxfa/app/cxfa_fwltheme.h deleted file mode 100644 index eaca99082d..0000000000 --- a/xfa/fxfa/app/cxfa_fwltheme.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef XFA_FXFA_APP_CXFA_FWLTHEME_H_ -#define XFA_FXFA_APP_CXFA_FWLTHEME_H_ - -#include - -#include "xfa/fwl/ifwl_themeprovider.h" -#include "xfa/fwl/theme/cfwl_barcodetp.h" -#include "xfa/fwl/theme/cfwl_carettp.h" -#include "xfa/fwl/theme/cfwl_checkboxtp.h" -#include "xfa/fwl/theme/cfwl_comboboxtp.h" -#include "xfa/fwl/theme/cfwl_datetimepickertp.h" -#include "xfa/fwl/theme/cfwl_edittp.h" -#include "xfa/fwl/theme/cfwl_listboxtp.h" -#include "xfa/fwl/theme/cfwl_monthcalendartp.h" -#include "xfa/fwl/theme/cfwl_pictureboxtp.h" -#include "xfa/fwl/theme/cfwl_pushbuttontp.h" -#include "xfa/fwl/theme/cfwl_scrollbartp.h" -#include "xfa/fwl/theme/cfwl_widgettp.h" -#include "xfa/fxfa/cxfa_ffapp.h" - -class CXFA_FWLTheme final : public IFWL_ThemeProvider { - public: - explicit CXFA_FWLTheme(CXFA_FFApp* pApp); - ~CXFA_FWLTheme() override; - - // IFWL_ThemeProvider: - void DrawBackground(CFWL_ThemeBackground* pParams) override; - void DrawText(CFWL_ThemeText* pParams) override; - void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; - float GetCXBorderSize() const override; - float GetCYBorderSize() const override; - CFX_RectF GetUIMargin(CFWL_ThemePart* pThemePart) const override; - float GetFontSize(CFWL_ThemePart* pThemePart) const override; - CFX_RetainPtr GetFont( - CFWL_ThemePart* pThemePart) const override; - float GetLineHeight(CFWL_ThemePart* pThemePart) const override; - float GetScrollBarWidth() const override; - FX_COLORREF GetTextColor(CFWL_ThemePart* pThemePart) const override; - CFX_SizeF GetSpaceAboveBelow(CFWL_ThemePart* pThemePart) const override; - - private: - CFWL_WidgetTP* GetTheme(CFWL_Widget* pWidget) const; - - std::unique_ptr m_pCheckBoxTP; - std::unique_ptr m_pListBoxTP; - std::unique_ptr m_pPictureBoxTP; - std::unique_ptr m_pSrollBarTP; - std::unique_ptr m_pEditTP; - std::unique_ptr m_pComboBoxTP; - std::unique_ptr m_pMonthCalendarTP; - std::unique_ptr m_pDateTimePickerTP; - std::unique_ptr m_pPushButtonTP; - std::unique_ptr m_pCaretTP; - std::unique_ptr m_pBarcodeTP; - std::unique_ptr m_pTextOut; - CFX_RetainPtr m_pCalendarFont; - CFX_WideString m_wsResource; - CFX_UnownedPtr const m_pApp; - CFX_RectF m_Rect; -}; - -CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget); - -#endif // XFA_FXFA_APP_CXFA_FWLTHEME_H_ -- cgit v1.2.3