#ifndef UI_V2_SRC_VIEW_PRIVATE_H_
#define UI_V2_SRC_VIEW_PRIVATE_H_
#include "base/observer_list.h"
#include "ui/v2/public/view.h"
namespace gfx {
class Rect;
}
namespace v2 {
class ViewObserver;
class ViewPrivate {
public:
explicit ViewPrivate(View* view);
~ViewPrivate();
ObserverList<ViewObserver>* observers() { return &view_->observers_; }
void ClearParent() { view_->parent_ = NULL; }
void set_bounds(const gfx::Rect& bounds) { view_->bounds_ = bounds; }
private:
View* view_;
DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
};
}
#endif