OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_CORE_CFWL_CARET_H_ | 7 #ifndef XFA_FWL_CFWL_CARET_H_ |
8 #define XFA_FWL_CORE_CFWL_CARET_H_ | 8 #define XFA_FWL_CFWL_CARET_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/fwl/core/cfwl_timer.h" | 12 #include "xfa/fwl/cfwl_timer.h" |
13 #include "xfa/fwl/core/cfwl_widget.h" | 13 #include "xfa/fwl/cfwl_widget.h" |
14 #include "xfa/fxgraphics/cfx_color.h" | 14 #include "xfa/fxgraphics/cfx_color.h" |
15 | 15 |
16 class CFWL_WidgetProperties; | 16 class CFWL_WidgetProperties; |
17 class CFWL_Widget; | 17 class CFWL_Widget; |
18 | 18 |
19 #define FWL_STATE_CAT_HightLight 1 | 19 #define FWL_STATE_CAT_HightLight 1 |
20 | 20 |
21 class CFWL_Caret : public CFWL_Widget { | 21 class CFWL_Caret : public CFWL_Widget { |
22 public: | 22 public: |
23 CFWL_Caret(const CFWL_App* app, | 23 CFWL_Caret(const CFWL_App* app, |
(...skipping 23 matching lines...) Expand all Loading... |
47 friend class CFWL_Caret::Timer; | 47 friend class CFWL_Caret::Timer; |
48 | 48 |
49 void DrawCaretBK(CFX_Graphics* pGraphics, | 49 void DrawCaretBK(CFX_Graphics* pGraphics, |
50 IFWL_ThemeProvider* pTheme, | 50 IFWL_ThemeProvider* pTheme, |
51 const CFX_Matrix* pMatrix); | 51 const CFX_Matrix* pMatrix); |
52 | 52 |
53 std::unique_ptr<CFWL_Caret::Timer> m_pTimer; | 53 std::unique_ptr<CFWL_Caret::Timer> m_pTimer; |
54 CFWL_TimerInfo* m_pTimerInfo; // not owned. | 54 CFWL_TimerInfo* m_pTimerInfo; // not owned. |
55 }; | 55 }; |
56 | 56 |
57 #endif // XFA_FWL_CORE_CFWL_CARET_H_ | 57 #endif // XFA_FWL_CFWL_CARET_H_ |
OLD | NEW |