| Index: views/paint_lock.cc
|
| diff --git a/views/paint_lock.cc b/views/paint_lock.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..282c2c3526dbedabb5b48b325b000ae7c6de4b95
|
| --- /dev/null
|
| +++ b/views/paint_lock.cc
|
| @@ -0,0 +1,19 @@
|
| +// 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.
|
| +
|
| +#include "views/paint_lock.h"
|
| +
|
| +#include "views/view.h"
|
| +
|
| +namespace views {
|
| +
|
| +PaintLock::PaintLock(View* view) : view_(view) {
|
| + view_->set_painting_enabled(false);
|
| +}
|
| +
|
| +PaintLock::~PaintLock() {
|
| + view_->set_painting_enabled(true);
|
| +}
|
| +
|
| +} // namespace views
|
|
|