- // Used to notify whenever the paint-content of the view changes.
- class PaintObserver {
- public:
- PaintObserver() {}
- virtual ~PaintObserver() {}
-
- // This is called when painting of the page is completed.
- virtual void OnPaintComplete() = 0;
-
- // This is called when compositor painting of the page is completed.
- virtual void OnCompositingComplete() = 0;
-
- // This is called when the contents for compositor painting changes.
- virtual void OnUpdateCompositorContent() = 0;
-
- // This is called loading the page has completed.
- virtual void OnPageLoadComplete() = 0;
-
- // This is called when the view is destroyed, so that the observer can
- // perform any necessary clean-up.
- virtual void OnViewDestroyed() = 0;
- };
-