Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Unified Diff: views/controls/menu/menu_host_gtk.cc

Issue 270067: Converts some uses of native_view to native_window. This is necessitated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/controls/menu/menu_host_gtk.cc
===================================================================
--- views/controls/menu/menu_host_gtk.cc (revision 28706)
+++ views/controls/menu/menu_host_gtk.cc (working copy)
@@ -30,11 +30,11 @@
}
}
-void MenuHost::Init(gfx::NativeView parent,
+void MenuHost::Init(gfx::NativeWindow parent,
const gfx::Rect& bounds,
View* contents_view,
bool do_capture) {
- WidgetGtk::Init(parent, bounds);
+ WidgetGtk::Init(GTK_WIDGET(parent), bounds);
SetContentsView(contents_view);
// TODO(sky): see if there is some way to show without changing focus.
Show();
@@ -65,6 +65,10 @@
}
}
+gfx::NativeWindow MenuHost::GetNativeWindow() {
+ return GTK_WINDOW(GetNativeView());
+}
+
void MenuHost::Show() {
WidgetGtk::Show();
}

Powered by Google App Engine
This is Rietveld 408576698