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

Unified Diff: chrome/browser/ui/gtk/constrained_window_gtk.cc

Issue 12224020: Use gfx::NativeView rather than gfx::NativeWindow to identify web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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: chrome/browser/ui/gtk/constrained_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/constrained_window_gtk.cc b/chrome/browser/ui/gtk/constrained_window_gtk.cc
index a280ffe30543f9f920de9714599ef3500efe5752..daba5e0e831d8336e91a561cc1827352217c6433 100644
--- a/chrome/browser/ui/gtk/constrained_window_gtk.cc
+++ b/chrome/browser/ui/gtk/constrained_window_gtk.cc
@@ -119,8 +119,8 @@ void ConstrainedWindowGtk::FocusWebContentsModalDialog() {
void ConstrainedWindowGtk::PulseWebContentsModalDialog() {
}
-gfx::NativeWindow ConstrainedWindowGtk::GetNativeWindow() {
- return GTK_WINDOW(gtk_widget_get_toplevel(widget()));
+gfx::NativeView ConstrainedWindowGtk::GetNativeView() {
+ return widget();
}
void ConstrainedWindowGtk::BackgroundColorChanged() {

Powered by Google App Engine
This is Rietveld 408576698