| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 | 781 |
| 782 bool DesktopNativeWidgetAura::IsAlwaysOnTop() const { | 782 bool DesktopNativeWidgetAura::IsAlwaysOnTop() const { |
| 783 return content_window_ && desktop_window_tree_host_->IsAlwaysOnTop(); | 783 return content_window_ && desktop_window_tree_host_->IsAlwaysOnTop(); |
| 784 } | 784 } |
| 785 | 785 |
| 786 void DesktopNativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) { | 786 void DesktopNativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) { |
| 787 if (content_window_) | 787 if (content_window_) |
| 788 desktop_window_tree_host_->SetVisibleOnAllWorkspaces(always_visible); | 788 desktop_window_tree_host_->SetVisibleOnAllWorkspaces(always_visible); |
| 789 } | 789 } |
| 790 | 790 |
| 791 bool DesktopNativeWidgetAura::IsVisibleOnAllWorkspaces() const { |
| 792 return content_window_ && |
| 793 desktop_window_tree_host_->IsVisibleOnAllWorkspaces(); |
| 794 } |
| 795 |
| 791 void DesktopNativeWidgetAura::Maximize() { | 796 void DesktopNativeWidgetAura::Maximize() { |
| 792 if (content_window_) | 797 if (content_window_) |
| 793 desktop_window_tree_host_->Maximize(); | 798 desktop_window_tree_host_->Maximize(); |
| 794 } | 799 } |
| 795 | 800 |
| 796 void DesktopNativeWidgetAura::Minimize() { | 801 void DesktopNativeWidgetAura::Minimize() { |
| 797 if (content_window_) | 802 if (content_window_) |
| 798 desktop_window_tree_host_->Minimize(); | 803 desktop_window_tree_host_->Minimize(); |
| 799 } | 804 } |
| 800 | 805 |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 if (cursor_reference_count_ == 0) { | 1196 if (cursor_reference_count_ == 0) { |
| 1192 // We are the last DesktopNativeWidgetAura instance, and we are responsible | 1197 // We are the last DesktopNativeWidgetAura instance, and we are responsible |
| 1193 // for cleaning up |cursor_manager_|. | 1198 // for cleaning up |cursor_manager_|. |
| 1194 delete cursor_manager_; | 1199 delete cursor_manager_; |
| 1195 native_cursor_manager_ = NULL; | 1200 native_cursor_manager_ = NULL; |
| 1196 cursor_manager_ = NULL; | 1201 cursor_manager_ = NULL; |
| 1197 } | 1202 } |
| 1198 } | 1203 } |
| 1199 | 1204 |
| 1200 } // namespace views | 1205 } // namespace views |
| OLD | NEW |