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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: cleanup 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
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..81d3c647533c776c3376f25bcf8606f85ff6258d 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -195,6 +195,14 @@ bool WmWindowAura::IsBubble() {
return widget->widget_delegate()->AsBubbleDialogDelegate() != nullptr;
}
+bool WmWindowAura::GetLayerTargetVisibility() {
James Cook 2016/10/04 23:16:04 match header file order
sky 2016/10/06 17:57:06 Done.
+ return GetLayer()->GetTargetVisibility();
+}
+
+bool WmWindowAura::GetLayerVisible() {
+ return GetLayer()->visible();
+}
+
ui::Layer* WmWindowAura::GetLayer() {
return window_->layer();
}
@@ -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);
}

Powered by Google App Engine
This is Rietveld 408576698