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

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

Issue 10825191: Allow closing root window, or pressing the power button to shutdown ash_shell, and chrome /w chrome… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed removing this somehow Created 8 years, 4 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/desktop_native_widget_helper_aura.h ('k') | no next file » | 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/desktop_native_widget_helper_aura.h" 5 #include "ui/views/widget/desktop_native_widget_helper_aura.h"
6 6
7 #include "ui/aura/client/dispatcher_client.h" 7 #include "ui/aura/client/dispatcher_client.h"
8 #include "ui/aura/client/screen_position_client.h" 8 #include "ui/aura/client/screen_position_client.h"
9 #include "ui/aura/desktop/desktop_activation_client.h" 9 #include "ui/aura/desktop/desktop_activation_client.h"
10 #include "ui/aura/desktop/desktop_cursor_client.h" 10 #include "ui/aura/desktop/desktop_cursor_client.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // DesktopNativeWidgetHelperAura, aura::RootWindowObserver implementation: 235 // DesktopNativeWidgetHelperAura, aura::RootWindowObserver implementation:
236 236
237 void DesktopNativeWidgetHelperAura::OnRootWindowResized( 237 void DesktopNativeWidgetHelperAura::OnRootWindowResized(
238 const aura::RootWindow* root, 238 const aura::RootWindow* root,
239 const gfx::Size& old_size) { 239 const gfx::Size& old_size) {
240 DCHECK_EQ(root, root_window_.get()); 240 DCHECK_EQ(root, root_window_.get());
241 widget_->SetBounds(gfx::Rect(root->GetHostOrigin(), 241 widget_->SetBounds(gfx::Rect(root->GetHostOrigin(),
242 root->GetHostSize())); 242 root->GetHostSize()));
243 } 243 }
244 244
245 void DesktopNativeWidgetHelperAura::OnRootWindowHostClosed( 245 void DesktopNativeWidgetHelperAura::OnRootWindowHostCloseRequested(
246 const aura::RootWindow* root) { 246 const aura::RootWindow* root) {
247 DCHECK_EQ(root, root_window_.get()); 247 DCHECK_EQ(root, root_window_.get());
248 widget_->GetWidget()->Close(); 248 widget_->GetWidget()->Close();
249 } 249 }
250 250
251 } // namespace views 251 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_native_widget_helper_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698