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

Side by Side Diff: xfa/fwl/core/ifwl_caret.h

Issue 2526513002: Rename IFWL_Timer and IFWL_TimerInfo (Closed)
Patch Set: Review feedback Created 4 years 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/fwl/core/ifwl_adaptertimermgr.h ('k') | xfa/fwl/core/ifwl_caret.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IFWL_CARET_H_ 7 #ifndef XFA_FWL_CORE_IFWL_CARET_H_
8 #define XFA_FWL_CORE_IFWL_CARET_H_ 8 #define XFA_FWL_CORE_IFWL_CARET_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/ifwl_timer.h" 12 #include "xfa/fwl/core/cfwl_timer.h"
13 #include "xfa/fwl/core/ifwl_widget.h" 13 #include "xfa/fwl/core/ifwl_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 IFWL_Widget; 17 class IFWL_Widget;
18 18
19 #define FWL_STATE_CAT_HightLight 1 19 #define FWL_STATE_CAT_HightLight 1
20 20
21 class IFWL_Caret : public IFWL_Widget { 21 class IFWL_Caret : public IFWL_Widget {
22 public: 22 public:
23 IFWL_Caret(const IFWL_App* app, 23 IFWL_Caret(const IFWL_App* app,
24 std::unique_ptr<CFWL_WidgetProperties> properties, 24 std::unique_ptr<CFWL_WidgetProperties> properties,
25 IFWL_Widget* pOuter); 25 IFWL_Widget* pOuter);
26 ~IFWL_Caret() override; 26 ~IFWL_Caret() override;
27 27
28 // IFWL_Widget 28 // IFWL_Widget
29 FWL_Type GetClassID() const override; 29 FWL_Type GetClassID() const override;
30 void DrawWidget(CFX_Graphics* pGraphics, 30 void DrawWidget(CFX_Graphics* pGraphics,
31 const CFX_Matrix* pMatrix = nullptr) override; 31 const CFX_Matrix* pMatrix = nullptr) override;
32 void OnProcessMessage(CFWL_Message* pMessage) override; 32 void OnProcessMessage(CFWL_Message* pMessage) override;
33 void OnDrawWidget(CFX_Graphics* pGraphics, 33 void OnDrawWidget(CFX_Graphics* pGraphics,
34 const CFX_Matrix* pMatrix) override; 34 const CFX_Matrix* pMatrix) override;
35 35
36 void ShowCaret(bool bFlag = true); 36 void ShowCaret(bool bFlag = true);
37 37
38 private: 38 private:
39 class Timer : public IFWL_Timer { 39 class Timer : public CFWL_Timer {
40 public: 40 public:
41 explicit Timer(IFWL_Caret* pCaret); 41 explicit Timer(IFWL_Caret* pCaret);
42 ~Timer() override {} 42 ~Timer() override {}
43 43
44 void Run(IFWL_TimerInfo* hTimer) override; 44 void Run(CFWL_TimerInfo* hTimer) override;
45 }; 45 };
46 friend class IFWL_Caret::Timer; 46 friend class IFWL_Caret::Timer;
47 47
48 void DrawCaretBK(CFX_Graphics* pGraphics, 48 void DrawCaretBK(CFX_Graphics* pGraphics,
49 IFWL_ThemeProvider* pTheme, 49 IFWL_ThemeProvider* pTheme,
50 const CFX_Matrix* pMatrix); 50 const CFX_Matrix* pMatrix);
51 51
52 std::unique_ptr<IFWL_Caret::Timer> m_pTimer; 52 std::unique_ptr<IFWL_Caret::Timer> m_pTimer;
53 IFWL_TimerInfo* m_pTimerInfo; // not owned. 53 CFWL_TimerInfo* m_pTimerInfo; // not owned.
54 }; 54 };
55 55
56 #endif // XFA_FWL_CORE_IFWL_CARET_H_ 56 #endif // XFA_FWL_CORE_IFWL_CARET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_adaptertimermgr.h ('k') | xfa/fwl/core/ifwl_caret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698