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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: merge Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/test/ash_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index e4dd197759e5cb574ccbc00d6dd6f9cbbbd2f347..0bff46ef796b6eaf2eaa81cd1e5c03b1ed5e02d3 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -199,6 +199,14 @@ ui::Layer* WmWindowAura::GetLayer() {
return window_->layer();
}
+bool WmWindowAura::GetLayerTargetVisibility() {
+ return GetLayer()->GetTargetVisibility();
+}
+
+bool WmWindowAura::GetLayerVisible() {
+ return GetLayer()->visible();
+}
+
display::Display WmWindowAura::GetDisplayNearestWindow() {
return display::Screen::GetScreen()->GetDisplayNearestWindow(window_);
}
@@ -626,6 +634,10 @@ void WmWindowAura::StackChildBelow(WmWindow* child, WmWindow* target) {
window_->StackChildBelow(GetAuraWindow(child), GetAuraWindow(target));
}
+void WmWindowAura::SetPinned(bool trusted) {
+ wm::PinWindow(window_, trusted);
+}
+
void WmWindowAura::SetAlwaysOnTop(bool value) {
window_->SetProperty(aura::client::kAlwaysOnTopKey, value);
}
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/test/ash_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698