| 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/debug/trace_event.h" | 8 #include "base/debug/trace_event.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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 | 806 |
| 807 bool DesktopNativeWidgetAura::IsAlwaysOnTop() const { | 807 bool DesktopNativeWidgetAura::IsAlwaysOnTop() const { |
| 808 return content_window_ && desktop_window_tree_host_->IsAlwaysOnTop(); | 808 return content_window_ && desktop_window_tree_host_->IsAlwaysOnTop(); |
| 809 } | 809 } |
| 810 | 810 |
| 811 void DesktopNativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) { | 811 void DesktopNativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) { |
| 812 if (content_window_) | 812 if (content_window_) |
| 813 desktop_window_tree_host_->SetVisibleOnAllWorkspaces(always_visible); | 813 desktop_window_tree_host_->SetVisibleOnAllWorkspaces(always_visible); |
| 814 } | 814 } |
| 815 | 815 |
| 816 void DesktopNativeWidgetAura::SetInterceptAllKeys(bool want_all_keys) { |
| 817 if (content_window_) |
| 818 desktop_window_tree_host_->SetInterceptAllKeys(want_all_keys); |
| 819 } |
| 820 |
| 816 void DesktopNativeWidgetAura::Maximize() { | 821 void DesktopNativeWidgetAura::Maximize() { |
| 817 if (content_window_) | 822 if (content_window_) |
| 818 desktop_window_tree_host_->Maximize(); | 823 desktop_window_tree_host_->Maximize(); |
| 819 } | 824 } |
| 820 | 825 |
| 821 void DesktopNativeWidgetAura::Minimize() { | 826 void DesktopNativeWidgetAura::Minimize() { |
| 822 if (content_window_) | 827 if (content_window_) |
| 823 desktop_window_tree_host_->Minimize(); | 828 desktop_window_tree_host_->Minimize(); |
| 824 } | 829 } |
| 825 | 830 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 if (cursor_reference_count_ == 0) { | 1213 if (cursor_reference_count_ == 0) { |
| 1209 // We are the last DesktopNativeWidgetAura instance, and we are responsible | 1214 // We are the last DesktopNativeWidgetAura instance, and we are responsible |
| 1210 // for cleaning up |cursor_manager_|. | 1215 // for cleaning up |cursor_manager_|. |
| 1211 delete cursor_manager_; | 1216 delete cursor_manager_; |
| 1212 native_cursor_manager_ = NULL; | 1217 native_cursor_manager_ = NULL; |
| 1213 cursor_manager_ = NULL; | 1218 cursor_manager_ = NULL; |
| 1214 } | 1219 } |
| 1215 } | 1220 } |
| 1216 | 1221 |
| 1217 } // namespace views | 1222 } // namespace views |
| OLD | NEW |