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

Side by Side Diff: ui/compositor/layer_delegate.h

Issue 2514303004: WIP - mask a view's layer by its view coordinates
Patch Set: manual clip Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_COMPOSITOR_LAYER_DELEGATE_H_ 5 #ifndef UI_COMPOSITOR_LAYER_DELEGATE_H_
6 #define UI_COMPOSITOR_LAYER_DELEGATE_H_ 6 #define UI_COMPOSITOR_LAYER_DELEGATE_H_
7 7
8 #include "ui/compositor/compositor_export.h" 8 #include "ui/compositor/compositor_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 12 matching lines...) Expand all
23 // A notification that this layer has had a delegated frame swap and 23 // A notification that this layer has had a delegated frame swap and
24 // will be repainted. 24 // will be repainted.
25 virtual void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) = 0; 25 virtual void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) = 0;
26 26
27 // Called when the layer's device scale factor has changed. 27 // Called when the layer's device scale factor has changed.
28 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; 28 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0;
29 29
30 // Invoked when the bounds have changed. 30 // Invoked when the bounds have changed.
31 virtual void OnLayerBoundsChanged(const gfx::Rect& old_bounds); 31 virtual void OnLayerBoundsChanged(const gfx::Rect& old_bounds);
32 32
33 protected:
34 virtual ~LayerDelegate() {} 33 virtual ~LayerDelegate() {}
35 }; 34 };
36 35
37 } // namespace ui 36 } // namespace ui
38 37
39 #endif // UI_COMPOSITOR_LAYER_DELEGATE_H_ 38 #endif // UI_COMPOSITOR_LAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698