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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: WIP Created 3 years, 9 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: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 84d781ebb85f153902bd10e9971e73ac068f0c8a..32a8780e711f32129216240151a5bcfdff196a4e 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -841,6 +841,15 @@ bool DesktopNativeWidgetAura::IsFullscreen() const {
return content_window_ && desktop_window_tree_host_->IsFullscreen();
}
+void DesktopNativeWidgetAura::Pin(bool trusted) {
+ if (content_window_)
+ desktop_window_tree_host_->Pin(trusted);
+}
+
+bool DesktopNativeWidgetAura::IsPinned() const {
+ return content_window_ && desktop_window_tree_host_->IsPinned();
+}
+
void DesktopNativeWidgetAura::SetOpacity(float opacity) {
if (content_window_)
desktop_window_tree_host_->SetOpacity(opacity);

Powered by Google App Engine
This is Rietveld 408576698