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

Side by Side Diff: ui/views/widget/native_widget_win.cc

Issue 13699002: add HideAndClose in preference to having Close sometimes magically defer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: non aura Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698