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

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

Issue 2506253004: Split fwl/core class pt I. (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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_barcode.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 "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fwl/core/cfwl_themebackground.h" 10 #include "xfa/fwl/core/cfwl_themebackground.h"
11 #include "xfa/fwl/core/cfwl_widgetproperties.h" 11 #include "xfa/fwl/core/cfwl_widgetproperties.h"
12 #include "xfa/fwl/core/fwl_noteimp.h" 12 #include "xfa/fwl/core/fwl_noteimp.h"
13 #include "xfa/fwl/core/ifwl_caret.h" 13 #include "xfa/fwl/core/ifwl_caret.h"
14 #include "xfa/fwl/core/ifwl_themeprovider.h" 14 #include "xfa/fwl/core/ifwl_themeprovider.h"
15 #include "xfa/fwl/core/ifwl_timerinfo.h"
15 16
16 namespace { 17 namespace {
17 18
18 const uint32_t kFrequency = 400; 19 const uint32_t kFrequency = 400;
19 20
20 } // namespace 21 } // namespace
21 22
22 IFWL_Caret::IFWL_Caret(const IFWL_App* app, 23 IFWL_Caret::IFWL_Caret(const IFWL_App* app,
23 std::unique_ptr<CFWL_WidgetProperties> properties, 24 std::unique_ptr<CFWL_WidgetProperties> properties,
24 IFWL_Widget* pOuter) 25 IFWL_Widget* pOuter)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void IFWL_Caret::Timer::Run(IFWL_TimerInfo* pTimerInfo) { 96 void IFWL_Caret::Timer::Run(IFWL_TimerInfo* pTimerInfo) {
96 IFWL_Caret* pCaret = static_cast<IFWL_Caret*>(m_pWidget); 97 IFWL_Caret* pCaret = static_cast<IFWL_Caret*>(m_pWidget);
97 pCaret->SetStates(FWL_STATE_CAT_HightLight, 98 pCaret->SetStates(FWL_STATE_CAT_HightLight,
98 !(pCaret->GetStates() & FWL_STATE_CAT_HightLight)); 99 !(pCaret->GetStates() & FWL_STATE_CAT_HightLight));
99 100
100 CFX_RectF rt; 101 CFX_RectF rt;
101 pCaret->GetWidgetRect(rt); 102 pCaret->GetWidgetRect(rt);
102 rt.Set(0, 0, rt.width + 1, rt.height); 103 rt.Set(0, 0, rt.width + 1, rt.height);
103 pCaret->Repaint(&rt); 104 pCaret->Repaint(&rt);
104 } 105 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_barcode.h ('k') | xfa/fwl/core/ifwl_checkbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698