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

Side by Side Diff: ui/v2/src/view_private.h

Issue 25757007: V2: Implement reparenting, bounds and visibility change notifications, and write more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 months 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/v2/src/view.cc ('k') | ui/v2/src/view_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef UI_V2_SRC_VIEW_PRIVATE_H_
6 #define UI_V2_SRC_VIEW_PRIVATE_H_
7
8 #include "base/observer_list.h"
9 #include "ui/v2/public/view.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace v2 {
16
17 class ViewObserver;
18
19 // Friend of View. Provides a way to access view state for the implementation
20 // of class View.
21 class ViewPrivate {
sky 2013/10/03 21:28:19 One disadvantage of this approach vs what we have
22 public:
23 explicit ViewPrivate(View* view);
24 ~ViewPrivate();
25
26 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
27
28 void ClearParent() { view_->parent_ = NULL; }
29
30 void set_bounds(const gfx::Rect& bounds) { view_->bounds_ = bounds; }
31
32 private:
33 View* view_;
34
35 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
36 };
37
38 } // namespace v2
39
40 #endif // UI_V2_SRC_VIEW_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/v2/src/view.cc ('k') | ui/v2/src/view_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698