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

Unified Diff: xfa/fxfa/app/cxfa_fffielddelegate.h

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_ffdatetimeeditdelegate.cpp ('k') | xfa/fxfa/app/cxfa_fffielddelegate.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/app/cxfa_fffielddelegate.h
diff --git a/xfa/fxfa/app/cxfa_fffielddelegate.h b/xfa/fxfa/app/cxfa_fffielddelegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..e1117033231b329a91447e3d989597ee0c865f23
--- /dev/null
+++ b/xfa/fxfa/app/cxfa_fffielddelegate.h
@@ -0,0 +1,35 @@
+// 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
+
+#ifndef XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_
+#define XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_
+
+#include "core/fxcrt/fx_coordinates.h"
+#include "xfa/fwl/core/cfwl_event.h"
+#include "xfa/fwl/core/cfwl_message.h"
+#include "xfa/fwl/core/ifwl_widgetdelegate.h"
+#include "xfa/fxfa/app/xfa_fffield.h"
+#include "xfa/fxfa/xfa_ffwidget.h"
+#include "xfa/fxgraphics/cfx_graphics.h"
+
+class CXFA_FFFieldDelegate : public IFWL_WidgetDelegate {
+ public:
+ CXFA_FFFieldDelegate(std::unique_ptr<IFWL_WidgetDelegate> pDelegate,
+ CXFA_FFField* const pWidget);
+ ~CXFA_FFFieldDelegate() override;
+
+ // IFWL_WidgetDelegate
+ void OnProcessMessage(CFWL_Message* pMessage) override;
+ void OnProcessEvent(CFWL_Event* pEvent) override;
+ void OnDrawWidget(CFX_Graphics* pGraphics,
+ const CFX_Matrix* pMatrix) override;
+
+ protected:
+ std::unique_ptr<IFWL_WidgetDelegate> m_pDelegate;
+ CXFA_FFWidget* const m_pWidget; // Not owned.
+};
+
+#endif // XFA_FXFA_APP_CXFA_FFFIELDDELEGATE_H_
« no previous file with comments | « xfa/fxfa/app/cxfa_ffdatetimeeditdelegate.cpp ('k') | xfa/fxfa/app/cxfa_fffielddelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698