Refactoring InlineDialog and Drawer using new abstract Panel class

Change-Id: I753b2474ac4c44f3075c2deaf4c83eb996910592