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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/app/cxfa_ffimageeditdelegate.cpp
diff --git a/xfa/fxfa/app/cxfa_ffimageeditdelegate.cpp b/xfa/fxfa/app/cxfa_ffimageeditdelegate.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..84a9ee693fc01dcdbc38c8949cbd0e19d80cca8e
--- /dev/null
+++ b/xfa/fxfa/app/cxfa_ffimageeditdelegate.cpp
@@ -0,0 +1,28 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#include "xfa/fxfa/app/cxfa_ffimageeditdelegate.h"
+
+CXFA_FFImageEditDelegate::CXFA_FFImageEditDelegate(
+ std::unique_ptr<IFWL_WidgetDelegate> pDelegate,
+ CXFA_FFImageEdit* const pWidget)
+ : CXFA_FFFieldDelegate(std::move(pDelegate), pWidget) {}
+
+CXFA_FFImageEditDelegate::~CXFA_FFImageEditDelegate() {}
+
+void CXFA_FFImageEditDelegate::OnProcessMessage(CFWL_Message* pMessage) {
+ m_pDelegate->OnProcessMessage(pMessage);
+}
+
+void CXFA_FFImageEditDelegate::OnProcessEvent(CFWL_Event* pEvent) {
+ CXFA_FFFieldDelegate::OnProcessEvent(pEvent);
+ m_pDelegate->OnProcessEvent(pEvent);
+}
+
+void CXFA_FFImageEditDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
+ const CFX_Matrix* pMatrix) {
+ m_pDelegate->OnDrawWidget(pGraphics, pMatrix);
+}
« 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