• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FWL_CFWL_THEMEBACKGROUND_H_
8 #define XFA_FWL_CFWL_THEMEBACKGROUND_H_
9 
10 #include "core/fxcrt/fx_memory.h"
11 #include "core/fxcrt/unowned_ptr.h"
12 #include "xfa/fwl/cfwl_themepart.h"
13 
14 class CFGAS_GEGraphics;
15 class CFGAS_GEPath;
16 
17 namespace pdfium {
18 
19 class CFWL_ThemeBackground final : public CFWL_ThemePart {
20  public:
21   FX_STACK_ALLOCATED();
22 
23   CFWL_ThemeBackground(Part iPart,
24                        CFWL_Widget* pWidget,
25                        CFGAS_GEGraphics* pGraphics);
26   ~CFWL_ThemeBackground();
27 
GetGraphics()28   CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
GetPath()29   const CFGAS_GEPath* GetPath() const { return m_pPath; }
SetPath(const CFGAS_GEPath * pPath)30   void SetPath(const CFGAS_GEPath* pPath) { m_pPath = pPath; }
31 
32  private:
33   UnownedPtr<const CFGAS_GEPath> m_pPath;
34   UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
35 };
36 
37 }  // namespace pdfium
38 
39 // TODO(crbug.com/42271761): Remove.
40 using pdfium::CFWL_ThemeBackground;
41 
42 #endif  // XFA_FWL_CFWL_THEMEBACKGROUND_H_
43