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

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

Issue 286653003: Revert 270122 "Synchronizes View instances across clients." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 namespace services {
14 namespace view_manager {
15
16 class ViewPrivate {
17 public:
18 explicit ViewPrivate(View* view);
19 ~ViewPrivate();
20
21 static View* LocalCreate();
22 void LocalDestroy() {
23 view_->LocalDestroy();
24 }
25
26 void set_id(TransportViewId id) { view_->id_ = id; }
27 void set_node(ViewTreeNode* node) { view_->node_ = node; }
28
29 ViewManager* view_manager() { return view_->manager_; }
30 void set_view_manager(ViewManager* manager) {
31 view_->manager_ = manager;
32 }
33
34 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
35
36 private:
37 View* view_;
38
39 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
40 };
41
42 } // namespace view_manager
43 } // namespace services
44 } // namespace mojo
45
46 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698