Remove Downcasting RVContextMenuBase in ContextMenuDeleagate implementations.
ContextMenuDelegate talks in RVCMBase. This is fine for
ContextMenuDelegate::BuildMenu, but while showing it through
ContextMenuDelegate::ShowMenu, each platform downcasts the
RVCMBase to its own variant (RVCMViews, RVCMMac, RVCMImpl),
this seems unnecessary since the showing functionality can be
moved to RVContextMenuBase.
This CL does that and adds a virtual Show() function on
RVCMBase.
BUG=
397364
Test=No visible change should occur.
For reference, this CL is related to brining up right-click context menus
in chrome.
Committed:
https://crrev.com/e934d06d39858a9ebfbe2fef35aa16c2084f50e5
Cr-Commit-Position: refs/heads/master@{#301564}