summaryrefslogtreecommitdiffstats
path: root/views/window/window_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/window_win.cc')
-rw-r--r--views/window/window_win.cc19
1 files changed, 12 insertions, 7 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc
index 78fa32e..2286762 100644
--- a/views/window/window_win.cc
+++ b/views/window/window_win.cc
@@ -161,13 +161,9 @@ void WindowWin::Show(int show_state) {
SetInitialFocus();
}
-int WindowWin::GetShowState() const {
- return SW_SHOWNORMAL;
-}
-
-void WindowWin::ExecuteSystemMenuCommand(int command) {
- if (command)
- SendMessage(GetNativeView(), WM_SYSCOMMAND, command, 0);
+void WindowWin::HideWindow() {
+ // We can just call the function implemented by the widget.
+ Hide();
}
void WindowWin::PushForceHidden() {
@@ -182,6 +178,15 @@ void WindowWin::PopForceHidden() {
}
}
+int WindowWin::GetShowState() const {
+ return SW_SHOWNORMAL;
+}
+
+void WindowWin::ExecuteSystemMenuCommand(int command) {
+ if (command)
+ SendMessage(GetNativeView(), WM_SYSCOMMAND, command, 0);
+}
+
// static
int Window::GetLocalizedContentsWidth(int col_resource_id) {
double chars = _wtof(l10n_util::GetString(col_resource_id).c_str());