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

Unified Diff: ash/wm/screen_pinning_controller.h

Issue 2078883003: Handle UNPIN operation in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 6 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/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/screen_pinning_controller.h
diff --git a/ash/wm/screen_pinning_controller.h b/ash/wm/screen_pinning_controller.h
index 0e0b42d861259b816a144ad0cf54f5e076667575..191ac0828f0281e5b03aedbc8a4e8ad87b3e93e1 100644
--- a/ash/wm/screen_pinning_controller.h
+++ b/ash/wm/screen_pinning_controller.h
@@ -31,6 +31,9 @@ class ScreenPinningController : public WindowTreeHostManager::Observer {
// Returns true if in pinned mode, otherwise false.
bool IsPinned() const;
+ // Returns the pinned window if in pinned mode, or nullptr.
+ WmWindow* pinned_window() const { return pinned_window_; }
+
// Called when a new window is added to the container which has the pinned
// window.
void OnWindowAddedToPinnedContainer(WmWindow* new_window);
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698