OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "mojo/services/view_manager/ids.h" | 11 #include "mojo/services/view_manager/ids.h" |
12 #include "mojo/services/view_manager/view_manager_export.h" | 12 #include "mojo/services/view_manager/view_manager_export.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace view_manager { | |
17 namespace service { | 16 namespace service { |
18 class Node; | 17 class Node; |
19 | 18 |
20 // Represents a view. A view may be associated with a single Node. | 19 // Represents a view. A view may be associated with a single Node. |
21 class MOJO_VIEW_MANAGER_EXPORT View { | 20 class MOJO_VIEW_MANAGER_EXPORT View { |
22 public: | 21 public: |
23 explicit View(const ViewId& id); | 22 explicit View(const ViewId& id); |
24 ~View(); | 23 ~View(); |
25 | 24 |
26 const ViewId& id() const { return id_; } | 25 const ViewId& id() const { return id_; } |
(...skipping 10 matching lines...) Expand all Loading... |
37 void set_node(Node* node) { node_ = node; } | 36 void set_node(Node* node) { node_ = node; } |
38 | 37 |
39 const ViewId id_; | 38 const ViewId id_; |
40 Node* node_; | 39 Node* node_; |
41 SkBitmap bitmap_; | 40 SkBitmap bitmap_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(View); | 42 DISALLOW_COPY_AND_ASSIGN(View); |
44 }; | 43 }; |
45 | 44 |
46 } // namespace service | 45 } // namespace service |
47 } // namespace view_manager | |
48 } // namespace mojo | 46 } // namespace mojo |
49 | 47 |
50 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ | 48 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_H_ |
OLD | NEW |