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

Side by Side Diff: xfa/src/fwl/basewidget/fwl_caretimp.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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/src/fwl/basewidget/fwl_barcodeimp.cpp ('k') | xfa/src/fwl/basewidget/fwl_caretimp.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_SRC_FWL_BASEWIDGET_FWL_CARETIMP_H_
8 #define XFA_SRC_FWL_BASEWIDGET_FWL_CARETIMP_H_
9
10 #include "xfa/include/fwl/core/fwl_timer.h"
11 #include "xfa/src/fwl/core/fwl_widgetimp.h"
12
13 class CFWL_WidgetImpProperties;
14 class IFWL_Widget;
15 class CFWL_CaretImpDelegate;
16
17 class CFWL_CaretImp : public CFWL_WidgetImp {
18 public:
19 CFWL_CaretImp(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter);
21 virtual ~CFWL_CaretImp();
22
23 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
24 virtual FX_DWORD GetClassID() const;
25
26 virtual FWL_ERR Initialize();
27 virtual FWL_ERR Finalize();
28
29 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
30 const CFX_Matrix* pMatrix = NULL);
31
32 virtual FWL_ERR ShowCaret(FX_BOOL bFlag = TRUE);
33 virtual FWL_ERR GetFrequency(FX_DWORD& elapse);
34 virtual FWL_ERR SetFrequency(FX_DWORD elapse);
35 virtual FWL_ERR SetColor(CFX_Color crFill);
36
37 protected:
38 FX_BOOL DrawCaretBK(CFX_Graphics* pGraphics,
39 IFWL_ThemeProvider* pTheme,
40 const CFX_Matrix* pMatrix);
41 class CFWL_CaretTimer : public IFWL_Timer {
42 public:
43 explicit CFWL_CaretTimer(CFWL_CaretImp* pCaret);
44 ~CFWL_CaretTimer() override {}
45 int32_t Run(FWL_HTIMER hTimer) override;
46 CFWL_CaretImp* const m_pCaret;
47 };
48 CFWL_CaretTimer* m_pTimer;
49 FWL_HTIMER m_hTimer;
50 FX_DWORD m_dwElapse;
51 CFX_Color m_crFill;
52 FX_BOOL m_bSetColor;
53 friend class CFWL_CaretImpDelegate;
54 friend class CFWL_CaretTimer;
55 };
56 class CFWL_CaretImpDelegate : public CFWL_WidgetImpDelegate {
57 public:
58 CFWL_CaretImpDelegate(CFWL_CaretImp* pOwner);
59 int32_t OnProcessMessage(CFWL_Message* pMessage) override;
60 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics,
61 const CFX_Matrix* pMatrix = NULL) override;
62
63 protected:
64 CFWL_CaretImp* m_pOwner;
65 };
66
67 #endif // XFA_SRC_FWL_BASEWIDGET_FWL_CARETIMP_H_
OLDNEW
« no previous file with comments | « xfa/src/fwl/basewidget/fwl_barcodeimp.cpp ('k') | xfa/src/fwl/basewidget/fwl_caretimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698