Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: xfa/fxfa/include/xfa_rendercontext.h

Issue 2383593002: Move xfa/fxfa/include to xfa/fxfa (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/include/xfa_fontmgr.h ('k') | xfa/fxfa/parser/cscript_eventpseudomodel.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
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_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
8 #define XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
9
10 #include <memory>
11
12 #include "xfa/fxfa/include/fxfa.h"
13
14 class CXFA_RenderOptions {
15 public:
16 CXFA_RenderOptions() : m_bPrint(FALSE), m_bHighlight(TRUE) {}
17
18 FX_BOOL m_bPrint;
19 FX_BOOL m_bHighlight;
20 };
21
22 class CXFA_RenderContext {
23 public:
24 CXFA_RenderContext();
25 ~CXFA_RenderContext();
26
27 int32_t StartRender(CXFA_FFPageView* pPageView,
28 CFX_Graphics* pGS,
29 const CFX_Matrix& matrix,
30 const CXFA_RenderOptions& options);
31 int32_t DoRender(IFX_Pause* pPause = nullptr);
32 void StopRender();
33
34 protected:
35 std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator;
36 CXFA_FFWidget* m_pWidget;
37 CXFA_FFPageView* m_pPageView;
38 CFX_Graphics* m_pGS;
39 CFX_Matrix m_matrix;
40 CXFA_RenderOptions m_options;
41 uint32_t m_dwStatus;
42 CFX_RectF m_rtClipRect;
43 };
44
45 #endif // XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_fontmgr.h ('k') | xfa/fxfa/parser/cscript_eventpseudomodel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698