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

Unified Diff: ash/wm/workspace/workspace_manager.cc

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get workspace event handler from workspace controller. Created 7 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: ash/wm/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 9bc17a784a757ce92a10ede6b224a1bb6c24b005..16bc52049cf7747e2fe39f689b679b780295ad8d 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -248,6 +248,11 @@ Window* WorkspaceManager::GetActiveWorkspaceWindow() {
return active_workspace_->window();
}
+WorkspaceEventHandler* WorkspaceManager::GetEventHandlerForWindow(
+ aura::Window* window) {
+ return FindBy(window)->event_handler();
+}
+
Window* WorkspaceManager::GetParentForNewWindow(Window* window) {
// Try to put windows with transient parents in the same workspace as their
// transient parent.

Powered by Google App Engine
This is Rietveld 408576698