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 COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ |
6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ | 6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #if !defined(NDEBUG) | 127 #if !defined(NDEBUG) |
128 std::string GetDebugWindowHierarchy() const; | 128 std::string GetDebugWindowHierarchy() const; |
129 void BuildDebugInfo(const std::string& depth, std::string* result) const; | 129 void BuildDebugInfo(const std::string& depth, std::string* result) const; |
130 #endif | 130 #endif |
131 | 131 |
132 private: | 132 private: |
133 typedef std::vector<ServerView*> Views; | 133 typedef std::vector<ServerView*> Views; |
134 | 134 |
135 // SurfaceFactoryClient implementation. | 135 // SurfaceFactoryClient implementation. |
136 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 136 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 137 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
137 | 138 |
138 // Implementation of removing a view. Doesn't send any notification. | 139 // Implementation of removing a view. Doesn't send any notification. |
139 void RemoveImpl(ServerView* view); | 140 void RemoveImpl(ServerView* view); |
140 | 141 |
141 ServerViewDelegate* delegate_; | 142 ServerViewDelegate* delegate_; |
142 const ViewId id_; | 143 const ViewId id_; |
143 ServerView* parent_; | 144 ServerView* parent_; |
144 Views children_; | 145 Views children_; |
145 bool visible_; | 146 bool visible_; |
146 gfx::Rect bounds_; | 147 gfx::Rect bounds_; |
(...skipping 11 matching lines...) Expand all Loading... |
158 base::ObserverList<ServerViewObserver> observers_; | 159 base::ObserverList<ServerViewObserver> observers_; |
159 mojo::SurfaceClientPtr client_; | 160 mojo::SurfaceClientPtr client_; |
160 mojo::Binding<Surface> binding_; | 161 mojo::Binding<Surface> binding_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(ServerView); | 163 DISALLOW_COPY_AND_ASSIGN(ServerView); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace view_manager | 166 } // namespace view_manager |
166 | 167 |
167 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ | 168 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ |
OLD | NEW |