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

Side by Side Diff: xfa/src/fwl/lightwidget/caret.cpp

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/lightwidget/barcode.cpp ('k') | xfa/src/fwl/lightwidget/checkbox.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 #include "xfa/include/fwl/lightwidget/caret.h"
8
9 #include <memory>
10
11 #include "xfa/include/fwl/basewidget/fwl_caret.h"
12 #include "xfa/include/fwl/lightwidget/edit.h"
13 #include "xfa/src/fwl/core/fwl_targetimp.h"
14
15 CFWL_Caret* CFWL_Caret::Create() {
16 return new CFWL_Caret;
17 }
18 FWL_ERR CFWL_Caret::Initialize(const CFWL_WidgetProperties* pProperties) {
19 if (m_pIface)
20 return FWL_ERR_Indefinite;
21 if (pProperties) {
22 *m_pProperties = *pProperties;
23 }
24 std::unique_ptr<IFWL_Caret> pCaret(IFWL_Caret::Create(
25 m_pProperties->MakeWidgetImpProperties(nullptr), nullptr));
26 FWL_ERR ret = pCaret->Initialize();
27 if (ret != FWL_ERR_Succeeded) {
28 return ret;
29 }
30 m_pIface = pCaret.release();
31 CFWL_Widget::Initialize();
32 return FWL_ERR_Succeeded;
33 }
34 FWL_ERR CFWL_Caret::ShowCaret(FX_BOOL bFlag) {
35 return static_cast<IFWL_Caret*>(m_pIface)->ShowCaret(bFlag);
36 }
37 FWL_ERR CFWL_Caret::GetFrequency(FX_DWORD& elapse) {
38 return static_cast<IFWL_Caret*>(m_pIface)->GetFrequency(elapse);
39 }
40 FWL_ERR CFWL_Caret::SetFrequency(FX_DWORD elapse) {
41 return static_cast<IFWL_Caret*>(m_pIface)->SetFrequency(elapse);
42 }
43 FWL_ERR CFWL_Caret::SetColor(CFX_Color crFill) {
44 return static_cast<IFWL_Caret*>(m_pIface)->SetColor(crFill);
45 }
46 CFWL_Caret::CFWL_Caret() {}
47 CFWL_Caret::~CFWL_Caret() {}
OLDNEW
« no previous file with comments | « xfa/src/fwl/lightwidget/barcode.cpp ('k') | xfa/src/fwl/lightwidget/checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698