Index: views/widget/native_widget_gtk.cc |
=================================================================== |
--- views/widget/native_widget_gtk.cc (revision 98696) |
+++ views/widget/native_widget_gtk.cc (working copy) |
@@ -1004,9 +1004,8 @@ |
SetBoundsConstrained(bounds, NULL); |
} |
-void NativeWidgetGtk::GetWindowPlacement( |
- gfx::Rect* bounds, |
- ui::WindowShowState* show_state) const { |
+void NativeWidgetGtk::GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, |
+ bool* maximized) const { |
// Do nothing for now. ChromeOS isn't yet saving window placement. |
} |
@@ -1187,9 +1186,9 @@ |
Show(); |
} |
-void NativeWidgetGtk::ShowWithWindowState(ui::WindowShowState show_state) { |
+void NativeWidgetGtk::ShowWithState(ShowState state) { |
// No concept of maximization (yet) on ChromeOS. |
- if (show_state == ui::SHOW_STATE_INACTIVE) |
+ if (state == internal::NativeWidgetPrivate::SHOW_INACTIVE) |
gtk_window_set_focus_on_map(GetNativeWindow(), false); |
gtk_widget_show(GetNativeView()); |
} |
@@ -2077,14 +2076,10 @@ |
if (!GetWidget()->widget_delegate()) |
return; |
- ui::WindowShowState show_state = ui::SHOW_STATE_NORMAL; |
- if (IsMaximized()) |
- show_state = ui::SHOW_STATE_MAXIMIZED; |
- else if (IsMinimized()) |
- show_state = ui::SHOW_STATE_MINIMIZED; |
+ bool maximized = window_state_ & GDK_WINDOW_STATE_MAXIMIZED; |
GetWidget()->widget_delegate()->SaveWindowPlacement( |
GetWidget()->GetWindowScreenBounds(), |
- show_state); |
+ maximized); |
} |
//////////////////////////////////////////////////////////////////////////////// |