OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/widget/native_widget_win.h" | 5 #include "ui/views/widget/native_widget_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 278 } |
279 | 279 |
280 void NativeWidgetWin::Show() { | 280 void NativeWidgetWin::Show() { |
281 message_handler_->Show(); | 281 message_handler_->Show(); |
282 } | 282 } |
283 | 283 |
284 void NativeWidgetWin::Hide() { | 284 void NativeWidgetWin::Hide() { |
285 message_handler_->Hide(); | 285 message_handler_->Hide(); |
286 } | 286 } |
287 | 287 |
| 288 void NativeWidgetWin::HideAndClose() { |
| 289 Close(); |
| 290 } |
| 291 |
288 void NativeWidgetWin::ShowMaximizedWithBounds( | 292 void NativeWidgetWin::ShowMaximizedWithBounds( |
289 const gfx::Rect& restored_bounds) { | 293 const gfx::Rect& restored_bounds) { |
290 message_handler_->ShowMaximizedWithBounds(restored_bounds); | 294 message_handler_->ShowMaximizedWithBounds(restored_bounds); |
291 } | 295 } |
292 | 296 |
293 void NativeWidgetWin::ShowWithWindowState(ui::WindowShowState show_state) { | 297 void NativeWidgetWin::ShowWithWindowState(ui::WindowShowState show_state) { |
294 message_handler_->ShowWindowWithState(show_state); | 298 message_handler_->ShowWindowWithState(show_state); |
295 } | 299 } |
296 | 300 |
297 bool NativeWidgetWin::IsVisible() const { | 301 bool NativeWidgetWin::IsVisible() const { |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 // static | 978 // static |
975 bool NativeWidgetPrivate::IsTouchDown() { | 979 bool NativeWidgetPrivate::IsTouchDown() { |
976 // This currently isn't necessary because we're not generating touch events on | 980 // This currently isn't necessary because we're not generating touch events on |
977 // windows. When we do, this will need to be updated. | 981 // windows. When we do, this will need to be updated. |
978 return false; | 982 return false; |
979 } | 983 } |
980 | 984 |
981 } // namespace internal | 985 } // namespace internal |
982 | 986 |
983 } // namespace views | 987 } // namespace views |
OLD | NEW |