| 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/activation_client.h" | 8 #include "ui/aura/client/activation_client.h" |
| 9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 10 #include "ui/aura/client/cursor_client.h" | 10 #include "ui/aura/client/cursor_client.h" |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 638 |
| 639 bool DesktopNativeWidgetAura::IsActive() const { | 639 bool DesktopNativeWidgetAura::IsActive() const { |
| 640 return window_ && desktop_root_window_host_->IsActive(); | 640 return window_ && desktop_root_window_host_->IsActive(); |
| 641 } | 641 } |
| 642 | 642 |
| 643 void DesktopNativeWidgetAura::SetAlwaysOnTop(bool always_on_top) { | 643 void DesktopNativeWidgetAura::SetAlwaysOnTop(bool always_on_top) { |
| 644 if (window_) | 644 if (window_) |
| 645 desktop_root_window_host_->SetAlwaysOnTop(always_on_top); | 645 desktop_root_window_host_->SetAlwaysOnTop(always_on_top); |
| 646 } | 646 } |
| 647 | 647 |
| 648 bool DesktopNativeWidgetAura::IsAlwaysOnTop() const { |
| 649 return window_ && desktop_root_window_host_->IsAlwaysOnTop(); |
| 650 } |
| 651 |
| 648 void DesktopNativeWidgetAura::Maximize() { | 652 void DesktopNativeWidgetAura::Maximize() { |
| 649 if (window_) | 653 if (window_) |
| 650 desktop_root_window_host_->Maximize(); | 654 desktop_root_window_host_->Maximize(); |
| 651 } | 655 } |
| 652 | 656 |
| 653 void DesktopNativeWidgetAura::Minimize() { | 657 void DesktopNativeWidgetAura::Minimize() { |
| 654 if (window_) | 658 if (window_) |
| 655 desktop_root_window_host_->Minimize(); | 659 desktop_root_window_host_->Minimize(); |
| 656 } | 660 } |
| 657 | 661 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 | 1031 |
| 1028 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() { | 1032 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() { |
| 1029 return this; | 1033 return this; |
| 1030 } | 1034 } |
| 1031 | 1035 |
| 1032 void DesktopNativeWidgetAura::UpdateWindowTransparency() { | 1036 void DesktopNativeWidgetAura::UpdateWindowTransparency() { |
| 1033 window_->SetTransparent(ShouldUseNativeFrame()); | 1037 window_->SetTransparent(ShouldUseNativeFrame()); |
| 1034 } | 1038 } |
| 1035 | 1039 |
| 1036 } // namespace views | 1040 } // namespace views |
| OLD | NEW |