Let CJX_Object subclasses communicate typename to jse_define.h macros.
Remove some redundant naming in these macro invocations by
introducing a Type__ definition once in each class. In the
future, properties are going to need this information just
like methods, so avoid having to add hundreds of repeated
names then.
Change-Id: I32dcfea32e0a093b217056f558dc5b250440f780
Reviewed-on: https://pdfium-review.googlesource.com/c/48533
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/xfa/cjx_extras.h b/fxjs/xfa/cjx_extras.h
index e6e2dc1..420bfe4 100644
--- a/fxjs/xfa/cjx_extras.h
+++ b/fxjs/xfa/cjx_extras.h
@@ -18,6 +18,9 @@
~CJX_Extras() override;
JSE_PROP(type);
+
+ private:
+ using Type__ = CJX_Extras;
};
#endif // FXJS_XFA_CJX_EXTRAS_H_