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