| 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_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 12 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" |
| 13 #include "mojo/services/public/cpp/view_manager/node.h" | 13 #include "mojo/services/public/cpp/view_manager/node.h" |
| 14 #include "mojo/services/public/cpp/view_manager/types.h" | 14 #include "mojo/services/public/cpp/view_manager/types.h" |
| 15 #include "mojo/services/public/cpp/view_manager/view_manager.h" | 15 #include "mojo/services/public/cpp/view_manager/view_manager.h" |
| 16 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 16 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 17 | 17 |
| 18 class SkBitmap; | 18 class SkBitmap; |
| 19 | 19 |
| 20 namespace mojo { | 20 namespace mojo { |
| 21 class ApplicationConnection; | 21 class ApplicationConnection; |
| 22 namespace view_manager { | |
| 23 | |
| 24 class ViewManager; | 22 class ViewManager; |
| 25 class ViewManagerDelegate; | 23 class ViewManagerDelegate; |
| 26 class ViewManagerTransaction; | 24 class ViewManagerTransaction; |
| 27 | 25 |
| 28 // Manages the connection with the View Manager service. | 26 // Manages the connection with the View Manager service. |
| 29 class ViewManagerClientImpl : public ViewManager, | 27 class ViewManagerClientImpl : public ViewManager, |
| 30 public InterfaceImpl<ViewManagerClient> { | 28 public InterfaceImpl<ViewManagerClient> { |
| 31 public: | 29 public: |
| 32 explicit ViewManagerClientImpl(ViewManagerDelegate* delegate); | 30 explicit ViewManagerClientImpl(ViewManagerDelegate* delegate); |
| 33 virtual ~ViewManagerClientImpl(); | 31 virtual ~ViewManagerClientImpl(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 std::vector<Node*> roots_; | 145 std::vector<Node*> roots_; |
| 148 | 146 |
| 149 IdToNodeMap nodes_; | 147 IdToNodeMap nodes_; |
| 150 IdToViewMap views_; | 148 IdToViewMap views_; |
| 151 | 149 |
| 152 ViewManagerService* service_; | 150 ViewManagerService* service_; |
| 153 | 151 |
| 154 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 152 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
| 155 }; | 153 }; |
| 156 | 154 |
| 157 } // namespace view_manager | |
| 158 } // namespace mojo | 155 } // namespace mojo |
| 159 | 156 |
| 160 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 157 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| OLD | NEW |