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

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

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup 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_formproxy.h ('k') | xfa/fwl/core/ifwl_listbox.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_formproxy.h" 7 #include "xfa/fwl/core/ifwl_formproxy.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fwl/core/fwl_noteimp.h" 10 #include "xfa/fwl/core/fwl_noteimp.h"
11 11
12 IFWL_FormProxy::IFWL_FormProxy(const IFWL_App* app, 12 IFWL_FormProxy::IFWL_FormProxy(
13 const CFWL_WidgetImpProperties& properties, 13 const IFWL_App* app,
14 IFWL_Widget* pOuter) 14 std::unique_ptr<CFWL_WidgetProperties> properties,
15 : IFWL_Form(app, properties, pOuter) { 15 IFWL_Widget* pOuter)
16 } 16 : IFWL_Form(app, std::move(properties), pOuter) {}
17 17
18 IFWL_FormProxy::~IFWL_FormProxy() {} 18 IFWL_FormProxy::~IFWL_FormProxy() {}
19 19
20 FWL_Type IFWL_FormProxy::GetClassID() const { 20 FWL_Type IFWL_FormProxy::GetClassID() const {
21 return FWL_Type::FormProxy; 21 return FWL_Type::FormProxy;
22 } 22 }
23 23
24 bool IFWL_FormProxy::IsInstance(const CFX_WideStringC& wsClass) const { 24 bool IFWL_FormProxy::IsInstance(const CFX_WideStringC& wsClass) const {
25 if (wsClass == CFX_WideStringC(FWL_CLASS_FormProxy)) { 25 if (wsClass == CFX_WideStringC(FWL_CLASS_FormProxy)) {
26 return true; 26 return true;
27 } 27 }
28 return IFWL_Form::IsInstance(wsClass); 28 return IFWL_Form::IsInstance(wsClass);
29 } 29 }
30 30
31 FWL_Error IFWL_FormProxy::Update() { 31 FWL_Error IFWL_FormProxy::Update() {
32 return FWL_Error::Succeeded; 32 return FWL_Error::Succeeded;
33 } 33 }
34 34
35 FWL_Error IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics, 35 FWL_Error IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics,
36 const CFX_Matrix* pMatrix) { 36 const CFX_Matrix* pMatrix) {
37 return FWL_Error::Succeeded; 37 return FWL_Error::Succeeded;
38 } 38 }
39 39
40 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) { 40 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) {
41 m_pOuter->GetDelegate()->OnProcessMessage(pMessage); 41 m_pOuter->GetDelegate()->OnProcessMessage(pMessage);
42 } 42 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_formproxy.h ('k') | xfa/fwl/core/ifwl_listbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698