• 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 class CFWL_ThemeBackground final : public CFWL_ThemePart {
18  public:
19   FX_STACK_ALLOCATED();
20 
21   CFWL_ThemeBackground(Part iPart,
22                        CFWL_Widget* pWidget,
23                        CFGAS_GEGraphics* pGraphics);
24   ~CFWL_ThemeBackground();
25 
GetGraphics()26   CFGAS_GEGraphics* GetGraphics() const { return m_pGraphics; }
GetPath()27   const CFGAS_GEPath* GetPath() const { return m_pPath; }
SetPath(const CFGAS_GEPath * pPath)28   void SetPath(const CFGAS_GEPath* pPath) { m_pPath = pPath; }
29 
30  private:
31   UnownedPtr<const CFGAS_GEPath> m_pPath;
32   UnownedPtr<CFGAS_GEGraphics> const m_pGraphics;
33 };
34 
35 #endif  // XFA_FWL_CFWL_THEMEBACKGROUND_H_
36