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

Side by Side Diff: ui/views/paint_lock.h

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ui/views/native_theme_painter.cc ('k') | ui/views/paint_lock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_PAINT_LOCK_H_ 5 #ifndef UI_VIEWS_PAINT_LOCK_H_
6 #define VIEWS_PAINT_LOCK_H_ 6 #define UI_VIEWS_PAINT_LOCK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "views/views_export.h" 10 #include "ui/views/views_export.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 class View; 14 class View;
15 15
16 // Instances of PaintLock can be created to disable painting of the view 16 // Instances of PaintLock can be created to disable painting of the view
17 // (compositing is not disabled). When the class is destroyed, painting is 17 // (compositing is not disabled). When the class is destroyed, painting is
18 // re-enabled. This can be useful during operations like animations, that are 18 // re-enabled. This can be useful during operations like animations, that are
19 // sensitive to costly paints, and during which only composting, not painting, 19 // sensitive to costly paints, and during which only composting, not painting,
20 // is required. 20 // is required.
21 class VIEWS_EXPORT PaintLock { 21 class VIEWS_EXPORT PaintLock {
22 public: 22 public:
23 // The paint lock does not own the view. It is an error for the view to be 23 // The paint lock does not own the view. It is an error for the view to be
24 // destroyed before the lock. 24 // destroyed before the lock.
25 PaintLock(View* view); 25 PaintLock(View* view);
26 ~PaintLock(); 26 ~PaintLock();
27 27
28 private: 28 private:
29 View* view_; 29 View* view_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(PaintLock); 31 DISALLOW_COPY_AND_ASSIGN(PaintLock);
32 }; 32 };
33 33
34 } // namespace views 34 } // namespace views
35 35
36 #endif // VIEWS_PAINT_LOCK_H_ 36 #endif // UI_VIEWS_PAINT_LOCK_H_
OLDNEW
« no previous file with comments | « ui/views/native_theme_painter.cc ('k') | ui/views/paint_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698