| 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/desktop.h" | 8 #include "ui/aura/desktop.h" |
| 9 #include "ui/aura/event.h" | 9 #include "ui/aura/event.h" |
| 10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 void NativeWidgetAura::OnCaptureLost() { | 528 void NativeWidgetAura::OnCaptureLost() { |
| 529 delegate_->OnMouseCaptureLost(); | 529 delegate_->OnMouseCaptureLost(); |
| 530 } | 530 } |
| 531 | 531 |
| 532 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { | 532 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
| 533 delegate_->OnNativeWidgetPaint(canvas); | 533 delegate_->OnNativeWidgetPaint(canvas); |
| 534 } | 534 } |
| 535 | 535 |
| 536 void NativeWidgetAura::OnWindowDestroying() { | 536 void NativeWidgetAura::OnWindowDestroying() { |
| 537 delegate_->OnNativeWidgetDestroying(); | 537 delegate_->OnNativeWidgetDestroying(); |
| 538 |
| 539 // If the aura::Window is destroyed, we can no longer show tooltips. |
| 540 tooltip_manager_.reset(); |
| 538 } | 541 } |
| 539 | 542 |
| 540 void NativeWidgetAura::OnWindowDestroyed() { | 543 void NativeWidgetAura::OnWindowDestroyed() { |
| 541 window_ = NULL; | 544 window_ = NULL; |
| 542 delegate_->OnNativeWidgetDestroyed(); | 545 delegate_->OnNativeWidgetDestroyed(); |
| 543 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) | 546 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) |
| 544 delete this; | 547 delete this; |
| 545 } | 548 } |
| 546 | 549 |
| 547 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { | 550 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 } | 637 } |
| 635 | 638 |
| 636 // static | 639 // static |
| 637 bool NativeWidgetPrivate::IsMouseButtonDown() { | 640 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 638 NOTIMPLEMENTED(); | 641 NOTIMPLEMENTED(); |
| 639 return false; | 642 return false; |
| 640 } | 643 } |
| 641 | 644 |
| 642 } // namespace internal | 645 } // namespace internal |
| 643 } // namespace views | 646 } // namespace views |
| OLD | NEW |