Add a FrameHostMsg_BeginNavigation IPC
[chromium-blink-merge.git] / ui / v2 / src / view_private.h
blobd59a34e8545a6483bf6d4da91a4ba5c5cd06558b
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"
11 namespace gfx {
12 class Rect;
15 namespace v2 {
17 class ViewObserver;
19 // Friend of View. Provides a way to access view state for the implementation
20 // of class View.
21 class ViewPrivate {
22 public:
23 explicit ViewPrivate(View* view);
24 ~ViewPrivate();
26 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
28 void ClearParent() { view_->parent_ = NULL; }
30 void set_bounds(const gfx::Rect& bounds) { view_->bounds_ = bounds; }
32 private:
33 View* view_;
35 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
38 } // namespace v2
40 #endif // UI_V2_SRC_VIEW_PRIVATE_H_