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

Side by Side Diff: mojo/services/public/cpp/view_manager/lib/view_private.h

Issue 460863002: Rename Node to View in the View Manager mojom & client lib. Service TBD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_
7
8 #include "base/basictypes.h"
9
10 #include "mojo/services/public/cpp/view_manager/view.h"
11
12 namespace mojo {
13
14 class ViewPrivate {
15 public:
16 explicit ViewPrivate(View* view);
17 ~ViewPrivate();
18
19 static View* LocalCreate();
20
21 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
22
23 void ClearParent() { view_->parent_ = NULL; }
24
25 void set_id(Id id) { view_->id_ = id; }
26
27 ViewManager* view_manager() { return view_->manager_; }
28 void set_view_manager(ViewManager* manager) {
29 view_->manager_ = manager;
30 }
31
32 void LocalDestroy() {
33 view_->LocalDestroy();
34 }
35 void LocalAddChild(View* child) {
36 view_->LocalAddChild(child);
37 }
38 void LocalRemoveChild(View* child) {
39 view_->LocalRemoveChild(child);
40 }
41 void LocalReorder(View* relative, OrderDirection direction) {
42 view_->LocalReorder(relative, direction);
43 }
44 void LocalSetBounds(const gfx::Rect& old_bounds,
45 const gfx::Rect& new_bounds) {
46 view_->LocalSetBounds(old_bounds, new_bounds);
47 }
48
49 private:
50 View* view_;
51
52 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
53 };
54
55 } // namespace mojo
56
57 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_observer.cc ('k') | mojo/services/public/cpp/view_manager/lib/view_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698