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

Unified Diff: xfa/fwl/core/cfwl_msgkey.cpp

Issue 2510823003: Move the message definitions to their own files. (Closed)
Patch Set: Review feedback 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/fwl/core/cfwl_msgkey.h ('k') | xfa/fwl/core/cfwl_msgkillfocus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/cfwl_msgkey.cpp
diff --git a/core/fpdfapi/parser/cpdf_null.cpp b/xfa/fwl/core/cfwl_msgkey.cpp
similarity index 50%
copy from core/fpdfapi/parser/cpdf_null.cpp
copy to xfa/fwl/core/cfwl_msgkey.cpp
index 41478d7b4c00cbf225893eed6694edf68589622f..0163da9e8d4edefc1ac12d2984879c6194175be8 100644
--- a/core/fpdfapi/parser/cpdf_null.cpp
+++ b/xfa/fwl/core/cfwl_msgkey.cpp
@@ -4,15 +4,18 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "core/fpdfapi/parser/cpdf_null.h"
+#include "xfa/fwl/core/cfwl_msgkey.h"
+
#include "third_party/base/ptr_util.h"
-CPDF_Null::CPDF_Null() {}
+CFWL_MsgKey::CFWL_MsgKey() {}
+
+CFWL_MsgKey::~CFWL_MsgKey() {}
-CPDF_Object::Type CPDF_Null::GetType() const {
- return NULLOBJ;
+std::unique_ptr<CFWL_Message> CFWL_MsgKey::Clone() {
+ return pdfium::MakeUnique<CFWL_MsgKey>(*this);
}
-std::unique_ptr<CPDF_Object> CPDF_Null::Clone() const {
- return pdfium::MakeUnique<CPDF_Null>();
+CFWL_MessageType CFWL_MsgKey::GetClassID() const {
+ return CFWL_MessageType::Key;
}
« no previous file with comments | « xfa/fwl/core/cfwl_msgkey.h ('k') | xfa/fwl/core/cfwl_msgkillfocus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698