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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |