| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 delegate_->OnNativeWidgetDestroying(); | 525 delegate_->OnNativeWidgetDestroying(); |
| 526 } | 526 } |
| 527 | 527 |
| 528 void NativeWidgetAura::OnWindowDestroyed() { | 528 void NativeWidgetAura::OnWindowDestroyed() { |
| 529 window_ = NULL; | 529 window_ = NULL; |
| 530 delegate_->OnNativeWidgetDestroyed(); | 530 delegate_->OnNativeWidgetDestroyed(); |
| 531 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) | 531 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) |
| 532 delete this; | 532 delete this; |
| 533 } | 533 } |
| 534 | 534 |
| 535 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { |
| 536 delegate_->OnNativeWidgetVisibilityChanged(visible); |
| 537 } |
| 538 |
| 535 //////////////////////////////////////////////////////////////////////////////// | 539 //////////////////////////////////////////////////////////////////////////////// |
| 536 // Widget, public: | 540 // Widget, public: |
| 537 | 541 |
| 538 // static | 542 // static |
| 539 void Widget::NotifyLocaleChanged() { | 543 void Widget::NotifyLocaleChanged() { |
| 540 NOTIMPLEMENTED(); | 544 NOTIMPLEMENTED(); |
| 541 } | 545 } |
| 542 | 546 |
| 543 // static | 547 // static |
| 544 void Widget::CloseAllSecondaryWidgets() { | 548 void Widget::CloseAllSecondaryWidgets() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 } | 622 } |
| 619 | 623 |
| 620 // static | 624 // static |
| 621 bool NativeWidgetPrivate::IsMouseButtonDown() { | 625 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 622 NOTIMPLEMENTED(); | 626 NOTIMPLEMENTED(); |
| 623 return false; | 627 return false; |
| 624 } | 628 } |
| 625 | 629 |
| 626 } // namespace internal | 630 } // namespace internal |
| 627 } // namespace views | 631 } // namespace views |
| OLD | NEW |