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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef VIEWS_PAINT_LISTENER_H_
6 #define VIEWS_PAINT_LISTENER_H_
7 #pragma once
8
9 namespace views {
10
11 class View;
12
13 // Paint listeners can be installed on views to allow other parties to be
14 // notified when painting or compositing completes.
15 class PaintListener {
16 public:
17 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
18 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
19
20 protected:
21 virtual ~PaintListener();
22 };
23
24 } // namespace views
25
26 #endif // VIEWS_PAINT_LISTENER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698