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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 12225122: Verifies WindowClosing() is invoked only once when a window is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc » ('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/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/client/stacking_client.h" 8 #include "ui/aura/client/stacking_client.h"
9 #include "ui/aura/focus_manager.h" 9 #include "ui/aura/focus_manager.h"
10 #include "ui/aura/root_window.h" 10 #include "ui/aura/root_window.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) { 517 void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
518 native_widget_delegate_->OnNativeWidgetPaint(canvas); 518 native_widget_delegate_->OnNativeWidgetPaint(canvas);
519 } 519 }
520 520
521 void DesktopNativeWidgetAura::OnDeviceScaleFactorChanged( 521 void DesktopNativeWidgetAura::OnDeviceScaleFactorChanged(
522 float device_scale_factor) { 522 float device_scale_factor) {
523 } 523 }
524 524
525 void DesktopNativeWidgetAura::OnWindowDestroying() { 525 void DesktopNativeWidgetAura::OnWindowDestroying() {
526 native_widget_delegate_->OnNativeWidgetDestroying(); 526 // The DesktopRootWindowHost implementation sends OnNativeWidgetDestroying().
527 } 527 }
528 528
529 void DesktopNativeWidgetAura::OnWindowDestroyed() { 529 void DesktopNativeWidgetAura::OnWindowDestroyed() {
530 window_ = NULL; 530 window_ = NULL;
531 native_widget_delegate_->OnNativeWidgetDestroyed(); 531 native_widget_delegate_->OnNativeWidgetDestroyed();
532 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) 532 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET)
533 delete this; 533 delete this;
534 } 534 }
535 535
536 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) { 536 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 drop_helper_->OnDragExit(); 713 drop_helper_->OnDragExit();
714 } 714 }
715 715
716 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) { 716 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) {
717 DCHECK(drop_helper_.get() != NULL); 717 DCHECK(drop_helper_.get() != NULL);
718 return drop_helper_->OnDrop(event.data(), event.location(), 718 return drop_helper_->OnDrop(event.data(), event.location(),
719 last_drop_operation_); 719 last_drop_operation_);
720 } 720 }
721 721
722 } // namespace views 722 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698