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

Unified Diff: ash/common/wm/forwarding_layer_delegate.h

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Fix another test and update comment Created 4 years, 2 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 | « no previous file | ash/common/wm/forwarding_layer_delegate.cc » ('j') | cc/layers/surface_layer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/forwarding_layer_delegate.h
diff --git a/ash/common/wm/forwarding_layer_delegate.h b/ash/common/wm/forwarding_layer_delegate.h
index 446db9c747a7f508b2896232ad3e5e8cb59b789e..4111a4073360caeeec37d23109519d6beb9c6827 100644
--- a/ash/common/wm/forwarding_layer_delegate.h
+++ b/ash/common/wm/forwarding_layer_delegate.h
@@ -15,9 +15,6 @@ class Layer;
}
namespace ash {
-
-class WmWindow;
-
namespace wm {
// A layer delegate to paint the content of a recreated layer by delegating
@@ -26,7 +23,7 @@ namespace wm {
class ForwardingLayerDelegate : public ui::LayerDelegate,
public ui::LayerObserver {
public:
- ForwardingLayerDelegate(ui::Layer* new_layer, ui::Layer* original_layer);
+ ForwardingLayerDelegate(ui::Layer* client_layer, ui::Layer* original_layer);
~ForwardingLayerDelegate() override;
// ui:LayerDelegate:
@@ -37,14 +34,13 @@ class ForwardingLayerDelegate : public ui::LayerDelegate,
// ui::LayerObserver:
void DidPaintLayer(ui::Layer* layer, const gfx::Rect& rect) override;
- void SurfaceChanged(ui::Layer* layer) override;
void LayerDestroyed(ui::Layer* layer) override;
private:
// The layer for which |this| is the delegate.
ui::Layer* client_layer_;
- // The layer that was recreated to replace |new_layer_|.
+ // The layer that was recreated to replace |client_layer_|.
ui::Layer* original_layer_;
ScopedObserver<ui::Layer, ui::LayerObserver> scoped_observer_;
« no previous file with comments | « no previous file | ash/common/wm/forwarding_layer_delegate.cc » ('j') | cc/layers/surface_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698