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

Side by Side Diff: mojo/services/view_manager/view.h

Issue 250633003: Adds more to viewmanager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: override 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
« no previous file with comments | « mojo/services/view_manager/root_node_manager.cc ('k') | mojo/services/view_manager/view.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 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_VIEW_MANAGER_VIEW_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_H_
7
8 #include <vector>
9
10 #include "base/logging.h"
11 #include "mojo/services/view_manager/ids.h"
12 #include "mojo/services/view_manager/view_manager_export.h"
13
14 namespace mojo {
15 namespace services {
16 namespace view_manager {
17
18 class Node;
19
20 // Represents a view. A view may be associated with a single Node.
21 class MOJO_VIEW_MANAGER_EXPORT View {
22 public:
23 explicit View(const ViewId& id);
24 ~View();
25
26 const ViewId& id() const { return id_; }
27
28 Node* node() { return node_; }
29
30 private:
31 // Node is responsible for maintaining |node_|.
32 friend class Node;
33
34 void set_node(Node* node) { node_ = node; }
35
36 const ViewId id_;
37 Node* node_;
38
39 DISALLOW_COPY_AND_ASSIGN(View);
40 };
41
42 } // namespace view_manager
43 } // namespace services
44 } // namespace mojo
45
46 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.cc ('k') | mojo/services/view_manager/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698