On Window the minimized window would have a fake bounds that is out of
the screen, which is not consistent to other platforms' behavior.
}
gfx::Size NativeWindowViews::GetSize() {
+#if defined(OS_WIN)
+ if (IsMinimized())
+ return window_->GetRestoredBounds().size();
+#endif
+
return window_->GetWindowBoundsInScreen().size();
}
}
gfx::Point NativeWindowViews::GetPosition() {
+#if defined(OS_WIN)
+ if (IsMinimized())
+ return window_->GetRestoredBounds().origin();
+#endif
+
return window_->GetWindowBoundsInScreen().origin();
}