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

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

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master 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_caret.h ('k') | xfa/fwl/core/ifwl_checkbox.h » ('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 #include "xfa/fwl/core/ifwl_caret.h" 7 #include "xfa/fwl/core/ifwl_caret.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "third_party/base/ptr_util.h" 11 #include "third_party/base/ptr_util.h"
12 #include "xfa/fwl/core/cfwl_notedriver.h" 12 #include "xfa/fwl/core/cfwl_notedriver.h"
13 #include "xfa/fwl/core/cfwl_themebackground.h" 13 #include "xfa/fwl/core/cfwl_themebackground.h"
14 #include "xfa/fwl/core/cfwl_timerinfo.h" 14 #include "xfa/fwl/core/cfwl_timerinfo.h"
15 #include "xfa/fwl/core/cfwl_widgetproperties.h" 15 #include "xfa/fwl/core/cfwl_widgetproperties.h"
16 #include "xfa/fwl/core/ifwl_themeprovider.h" 16 #include "xfa/fwl/core/ifwl_themeprovider.h"
17 17
18 namespace { 18 namespace {
19 19
20 const uint32_t kFrequency = 400; 20 const uint32_t kFrequency = 400;
21 21
22 } // namespace 22 } // namespace
23 23
24 IFWL_Caret::IFWL_Caret(const IFWL_App* app, 24 IFWL_Caret::IFWL_Caret(const CFWL_App* app,
25 std::unique_ptr<CFWL_WidgetProperties> properties, 25 std::unique_ptr<CFWL_WidgetProperties> properties,
26 IFWL_Widget* pOuter) 26 IFWL_Widget* pOuter)
27 : IFWL_Widget(app, std::move(properties), pOuter), 27 : IFWL_Widget(app, std::move(properties), pOuter),
28 m_pTimer(new IFWL_Caret::Timer(this)), 28 m_pTimer(new IFWL_Caret::Timer(this)),
29 m_pTimerInfo(nullptr) { 29 m_pTimerInfo(nullptr) {
30 SetStates(FWL_STATE_CAT_HightLight); 30 SetStates(FWL_STATE_CAT_HightLight);
31 } 31 }
32 32
33 IFWL_Caret::~IFWL_Caret() { 33 IFWL_Caret::~IFWL_Caret() {
34 if (m_pTimerInfo) { 34 if (m_pTimerInfo) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void IFWL_Caret::Timer::Run(CFWL_TimerInfo* pTimerInfo) { 97 void IFWL_Caret::Timer::Run(CFWL_TimerInfo* pTimerInfo) {
98 IFWL_Caret* pCaret = static_cast<IFWL_Caret*>(m_pWidget); 98 IFWL_Caret* pCaret = static_cast<IFWL_Caret*>(m_pWidget);
99 pCaret->SetStates(FWL_STATE_CAT_HightLight, 99 pCaret->SetStates(FWL_STATE_CAT_HightLight,
100 !(pCaret->GetStates() & FWL_STATE_CAT_HightLight)); 100 !(pCaret->GetStates() & FWL_STATE_CAT_HightLight));
101 101
102 CFX_RectF rt; 102 CFX_RectF rt;
103 pCaret->GetWidgetRect(rt); 103 pCaret->GetWidgetRect(rt);
104 rt.Set(0, 0, rt.width + 1, rt.height); 104 rt.Set(0, 0, rt.width + 1, rt.height);
105 pCaret->Repaint(&rt); 105 pCaret->Repaint(&rt);
106 } 106 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_caret.h ('k') | xfa/fwl/core/ifwl_checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698