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

Side by Side Diff: ui/views/widget/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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 555 }
556 556
557 bool NativeWidgetAura::IsAlwaysOnTop() const { 557 bool NativeWidgetAura::IsAlwaysOnTop() const {
558 return window_ && window_->GetProperty(aura::client::kAlwaysOnTopKey); 558 return window_ && window_->GetProperty(aura::client::kAlwaysOnTopKey);
559 } 559 }
560 560
561 void NativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) { 561 void NativeWidgetAura::SetVisibleOnAllWorkspaces(bool always_visible) {
562 // Not implemented on chromeos or for child widgets. 562 // Not implemented on chromeos or for child widgets.
563 } 563 }
564 564
565 bool NativeWidgetAura::IsVisibleOnAllWorkspaces() const {
566 return false;
567 }
568
565 void NativeWidgetAura::Maximize() { 569 void NativeWidgetAura::Maximize() {
566 if (window_) 570 if (window_)
567 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); 571 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
568 } 572 }
569 573
570 void NativeWidgetAura::Minimize() { 574 void NativeWidgetAura::Minimize() {
571 if (window_) 575 if (window_)
572 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); 576 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED);
573 } 577 }
574 578
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 gfx::NativeView native_view) { 1198 gfx::NativeView native_view) {
1195 aura::client::CaptureClient* capture_client = 1199 aura::client::CaptureClient* capture_client =
1196 aura::client::GetCaptureClient(native_view->GetRootWindow()); 1200 aura::client::GetCaptureClient(native_view->GetRootWindow());
1197 if (!capture_client) 1201 if (!capture_client)
1198 return nullptr; 1202 return nullptr;
1199 return capture_client->GetGlobalCaptureWindow(); 1203 return capture_client->GetGlobalCaptureWindow();
1200 } 1204 }
1201 1205
1202 } // namespace internal 1206 } // namespace internal
1203 } // namespace views 1207 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698