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

Unified Diff: ash/wm/drag_window_controller.cc

Issue 2254733003: Add ui::LayerObserver and use it to update Alt+Tab previews as needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for other test Created 4 years, 4 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/common/wm/forwarding_layer_delegate.cc ('k') | ash/wm/window_mirror_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/drag_window_controller.cc
diff --git a/ash/wm/drag_window_controller.cc b/ash/wm/drag_window_controller.cc
index a494df0984d76cf9c8302b60e85478405e990062..fb6bc25cf677e44f7384d95fd00d60a68bc4538a 100644
--- a/ash/wm/drag_window_controller.cc
+++ b/ash/wm/drag_window_controller.cc
@@ -133,11 +133,11 @@ class DragWindowController::DragWindowDetails
}
// aura::WindowDelegate:
- ui::LayerDelegate* CreateDelegate(ui::LayerDelegate* delegate) override {
- if (!delegate)
+ ui::LayerDelegate* CreateDelegate(ui::Layer* foo, ui::Layer* layer) override {
+ if (!layer || !layer->delegate())
return nullptr;
- wm::ForwardingLayerDelegate* new_delegate = new wm::ForwardingLayerDelegate(
- WmWindowAura::Get(original_window_), delegate);
+ wm::ForwardingLayerDelegate* new_delegate =
+ new wm::ForwardingLayerDelegate(foo, layer);
delegates_.push_back(base::WrapUnique(new_delegate));
return new_delegate;
}
« no previous file with comments | « ash/common/wm/forwarding_layer_delegate.cc ('k') | ash/wm/window_mirror_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698