| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/native_widget_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/aura/aura_constants.h" | 8 #include "ui/aura/aura_constants.h" |
| 9 #include "ui/aura/desktop.h" | 9 #include "ui/aura/desktop.h" |
| 10 #include "ui/aura/desktop_observer.h" | 10 #include "ui/aura/desktop_observer.h" |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 609 |
| 610 void NativeWidgetAura::OnWindowDestroying() { | 610 void NativeWidgetAura::OnWindowDestroying() { |
| 611 delegate_->OnNativeWidgetDestroying(); | 611 delegate_->OnNativeWidgetDestroying(); |
| 612 | 612 |
| 613 // If the aura::Window is destroyed, we can no longer show tooltips. | 613 // If the aura::Window is destroyed, we can no longer show tooltips. |
| 614 tooltip_manager_.reset(); | 614 tooltip_manager_.reset(); |
| 615 } | 615 } |
| 616 | 616 |
| 617 void NativeWidgetAura::OnWindowDestroyed() { | 617 void NativeWidgetAura::OnWindowDestroyed() { |
| 618 window_ = NULL; | 618 window_ = NULL; |
| 619 tooltip_manager_.reset(); |
| 619 delegate_->OnNativeWidgetDestroyed(); | 620 delegate_->OnNativeWidgetDestroyed(); |
| 620 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) | 621 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) |
| 621 delete this; | 622 delete this; |
| 622 } | 623 } |
| 623 | 624 |
| 624 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { | 625 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { |
| 625 delegate_->OnNativeWidgetVisibilityChanged(visible); | 626 delegate_->OnNativeWidgetVisibilityChanged(visible); |
| 626 } | 627 } |
| 627 | 628 |
| 628 //////////////////////////////////////////////////////////////////////////////// | 629 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 } | 712 } |
| 712 | 713 |
| 713 // static | 714 // static |
| 714 bool NativeWidgetPrivate::IsMouseButtonDown() { | 715 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 715 NOTIMPLEMENTED(); | 716 NOTIMPLEMENTED(); |
| 716 return false; | 717 return false; |
| 717 } | 718 } |
| 718 | 719 |
| 719 } // namespace internal | 720 } // namespace internal |
| 720 } // namespace views | 721 } // namespace views |
| OLD | NEW |