Index: views/controls/menu/menu_host_win.cc |
=================================================================== |
--- views/controls/menu/menu_host_win.cc (revision 85284) |
+++ views/controls/menu/menu_host_win.cc (working copy) |
@@ -12,7 +12,8 @@ |
// MenuHostWin, public: |
MenuHostWin::MenuHostWin(internal::NativeMenuHostDelegate* delegate) |
- : delegate_(delegate) { |
+ : WidgetWin(delegate->AsNativeWidgetDelegate()), |
+ delegate_(delegate) { |
} |
MenuHostWin::~MenuHostWin() { |
@@ -42,16 +43,6 @@ |
WidgetWin::OnCancelMode(); |
} |
-// TODO(beng): remove once MenuHost is-a Widget |
-RootView* MenuHostWin::CreateRootView() { |
- return delegate_->CreateRootView(); |
-} |
- |
-// TODO(beng): remove once MenuHost is-a Widget |
-bool MenuHostWin::ShouldReleaseCaptureOnMouseReleased() const { |
- return delegate_->ShouldReleaseCaptureOnMouseRelease(); |
-} |
- |
//////////////////////////////////////////////////////////////////////////////// |
// NativeMenuHost, public: |