| Index: ui/gfx/compositor/layer_observer.h
|
| diff --git a/ui/gfx/compositor/layer_observer.h b/ui/gfx/compositor/layer_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf20e4ad3135b5f67e0d8086af8db584b2ad103d
|
| --- /dev/null
|
| +++ b/ui/gfx/compositor/layer_observer.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_
|
| +#define UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_
|
| +#pragma once
|
| +
|
| +namespace ui {
|
| +
|
| +class Layer;
|
| +
|
| +// Paint listeners can be installed on views to allow other parties to be
|
| +// notified when compositing completes.
|
| +class LayerObserver {
|
| + public:
|
| + // This is called after every draw.
|
| + virtual void OnDraw(Layer* view) = 0;
|
| +
|
| + protected:
|
| + virtual ~LayerObserver() {}
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_
|
|
|