| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |