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

Unified Diff: ui/wm/core/window_util.h

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 | « ui/compositor/layer_observer.h ('k') | ui/wm/core/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/window_util.h
diff --git a/ui/wm/core/window_util.h b/ui/wm/core/window_util.h
index 24373991f3ced65c9b2e4e33db2cb2361ac3988b..eac3879823d3e6c41dad0b1152baf0f80914b72e 100644
--- a/ui/wm/core/window_util.h
+++ b/ui/wm/core/window_util.h
@@ -41,12 +41,12 @@ WM_EXPORT aura::Window* GetToplevelWindow(aura::Window* window);
class WM_EXPORT LayerDelegateFactory {
public:
virtual ~LayerDelegateFactory() = default;
- // |original_delegate| may already be deleted by the time the new
+ // |original_layer| may already be deleted by the time the new
// delegate is created, so if the new delegate has to access it
// later, it is the new delegate's responsibility to make sure the
- // original delegate is alive.
- virtual ui::LayerDelegate* CreateDelegate(
- ui::LayerDelegate* original_delegate) = 0;
+ // original layer/delegate is alive.
+ virtual ui::LayerDelegate* CreateDelegate(ui::Layer* new_layer,
+ ui::Layer* original_layer) = 0;
};
// Returns the existing Layer for |root| (and all its descendants) and creates
« no previous file with comments | « ui/compositor/layer_observer.h ('k') | ui/wm/core/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698