1 // Copyright (c) 2013 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.
5 #ifndef UI_V2_SRC_VIEW_PRIVATE_H_
6 #define UI_V2_SRC_VIEW_PRIVATE_H_
8 #include "base/observer_list.h"
9 #include "ui/v2/public/view.h"
19 // Friend of View. Provides a way to access view state for the implementation
23 explicit ViewPrivate(View
* view
);
26 ObserverList
<ViewObserver
>* observers() { return &view_
->observers_
; }
28 void ClearParent() { view_
->parent_
= NULL
; }
30 void set_bounds(const gfx::Rect
& bounds
) { view_
->bounds_
= bounds
; }
35 DISALLOW_COPY_AND_ASSIGN(ViewPrivate
);
40 #endif // UI_V2_SRC_VIEW_PRIVATE_H_