Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 2158653002: Linux UI: Add IsVisibleOnAllWorkspaces() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more mac impls Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698