From fceb7ee27eb812f1807129ec7c3e74ff2d97f5b4 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Fri, 4 Nov 2011 23:08:11 -0600 Subject: [PATCH] Add FBC padding + Perform() methods to GridView and GroupView. We probably won't need these, but these additions are cheap. --- headers/os/interface/GridView.h | 16 ++++++++++++++++ headers/os/interface/GroupView.h | 16 ++++++++++++++++ src/kits/interface/GridView.cpp | 20 ++++++++++++++++++++ src/kits/interface/GroupView.cpp | 20 ++++++++++++++++++++ 4 files changed, 72 insertions(+) diff --git a/headers/os/interface/GridView.h b/headers/os/interface/GridView.h index 3e0279c0c6..15071b473b 100644 --- a/headers/os/interface/GridView.h +++ b/headers/os/interface/GridView.h @@ -25,11 +25,27 @@ public: static BArchivable* Instantiate(BMessage* from); + virtual status_t Perform(perform_code d, void* arg); + private: + // FBC padding + virtual void _ReservedGridView1(); + virtual void _ReservedGridView2(); + virtual void _ReservedGridView3(); + virtual void _ReservedGridView4(); + virtual void _ReservedGridView5(); + virtual void _ReservedGridView6(); + virtual void _ReservedGridView7(); + virtual void _ReservedGridView8(); + virtual void _ReservedGridView9(); + virtual void _ReservedGridView10(); + // forbidden methods BGridView(const BGridView&); void operator =(const BGridView&); + + uint32 _reserved[2]; }; diff --git a/headers/os/interface/GroupView.h b/headers/os/interface/GroupView.h index f272eb905e..b161405a35 100644 --- a/headers/os/interface/GroupView.h +++ b/headers/os/interface/GroupView.h @@ -26,11 +26,27 @@ public: static BArchivable* Instantiate(BMessage* from); + virtual status_t Perform(perform_code d, void* arg); + private: + // FBC padding + virtual void _ReservedGroupView1(); + virtual void _ReservedGroupView2(); + virtual void _ReservedGroupView3(); + virtual void _ReservedGroupView4(); + virtual void _ReservedGroupView5(); + virtual void _ReservedGroupView6(); + virtual void _ReservedGroupView7(); + virtual void _ReservedGroupView8(); + virtual void _ReservedGroupView9(); + virtual void _ReservedGroupView10(); + // forbidden methods BGroupView(const BGroupView&); void operator =(const BGroupView&); + + uint32 _reserved[2]; }; diff --git a/src/kits/interface/GridView.cpp b/src/kits/interface/GridView.cpp index 4e4c7ab238..142a1d0740 100644 --- a/src/kits/interface/GridView.cpp +++ b/src/kits/interface/GridView.cpp @@ -62,3 +62,23 @@ BGridView::Instantiate(BMessage* from) return new BGridView(from); return NULL; } + + +status_t +BGridView::Perform(perform_code code, void* _data) +{ + return BView::Perform(code, _data); +} + + +void BGridView::_ReservedGridView1() {} +void BGridView::_ReservedGridView2() {} +void BGridView::_ReservedGridView3() {} +void BGridView::_ReservedGridView4() {} +void BGridView::_ReservedGridView5() {} +void BGridView::_ReservedGridView6() {} +void BGridView::_ReservedGridView7() {} +void BGridView::_ReservedGridView8() {} +void BGridView::_ReservedGridView9() {} +void BGridView::_ReservedGridView10() {} + diff --git a/src/kits/interface/GroupView.cpp b/src/kits/interface/GroupView.cpp index b9e6912419..efb71fefbf 100644 --- a/src/kits/interface/GroupView.cpp +++ b/src/kits/interface/GroupView.cpp @@ -62,3 +62,23 @@ BGroupView::GroupLayout() const { return dynamic_cast(GetLayout()); } + + +status_t +BGroupView::Perform(perform_code code, void* _data) +{ + return BView::Perform(code, _data); +} + + +void BGroupView::_ReservedGroupView1() {} +void BGroupView::_ReservedGroupView2() {} +void BGroupView::_ReservedGroupView3() {} +void BGroupView::_ReservedGroupView4() {} +void BGroupView::_ReservedGroupView5() {} +void BGroupView::_ReservedGroupView6() {} +void BGroupView::_ReservedGroupView7() {} +void BGroupView::_ReservedGroupView8() {} +void BGroupView::_ReservedGroupView9() {} +void BGroupView::_ReservedGroupView10() {} +