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

Side by Side Diff: xfa/fxfa/app/cxfa_ffimageeditdelegate.cpp

Issue 2466273003: Change IFWL_Widget to store a single delegate. (Closed)
Patch Set: Fix Mac 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/fxfa/app/cxfa_ffimageeditdelegate.h ('k') | xfa/fxfa/app/cxfa_fflistboxdelegate.h » ('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 2016 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/fxfa/app/cxfa_ffimageeditdelegate.h"
8
9 CXFA_FFImageEditDelegate::CXFA_FFImageEditDelegate(
10 std::unique_ptr<IFWL_WidgetDelegate> pDelegate,
11 CXFA_FFImageEdit* const pWidget)
12 : CXFA_FFFieldDelegate(std::move(pDelegate), pWidget) {}
13
14 CXFA_FFImageEditDelegate::~CXFA_FFImageEditDelegate() {}
15
16 void CXFA_FFImageEditDelegate::OnProcessMessage(CFWL_Message* pMessage) {
17 m_pDelegate->OnProcessMessage(pMessage);
18 }
19
20 void CXFA_FFImageEditDelegate::OnProcessEvent(CFWL_Event* pEvent) {
21 CXFA_FFFieldDelegate::OnProcessEvent(pEvent);
22 m_pDelegate->OnProcessEvent(pEvent);
23 }
24
25 void CXFA_FFImageEditDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
26 const CFX_Matrix* pMatrix) {
27 m_pDelegate->OnDrawWidget(pGraphics, pMatrix);
28 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/cxfa_ffimageeditdelegate.h ('k') | xfa/fxfa/app/cxfa_fflistboxdelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698