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

Unified Diff: views/paint_listener.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Listen for painting to complete rather than posting tasks. Created 9 years, 4 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
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_

Powered by Google App Engine
This is Rietveld 408576698