Index: views/paint_listener.h |
diff --git a/views/paint_listener.h b/views/paint_listener.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0fcdd5dce25c850434ed161e3ebff4532dde46b9 |
--- /dev/null |
+++ b/views/paint_listener.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 VIEWS_PAINT_LISTENER_H_ |
+#define VIEWS_PAINT_LISTENER_H_ |
+#pragma once |
+ |
+namespace views { |
+ |
+class View; |
+ |
+// Paint listeners can be installed on views to allow other parties to be |
+// notified when painting or compositing completes. |
+class PaintListener { |
+ public: |
+ virtual void OnPainted(View* view) = 0; |
Ben Goodger (Google)
2011/08/26 19:30:00
From your code, it doesn't appear that the OnPaint
|
+ virtual void OnComposited(View* view) = 0; |
Ben Goodger (Google)
2011/08/26 19:30:00
Looking at what you're using this for, it seems li
|
+ |
+ protected: |
+ virtual ~PaintListener(); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // VIEWS_PAINT_LISTENER_H_ |