| 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 { | 22 namespace view_manager { |
| 23 | 23 |
| 24 class ViewEventDispatcher; | 24 class ViewEventDispatcher; |
| 25 class ViewManager; | 25 class ViewManager; |
| 26 class ViewManagerDelegate; |
| 26 class ViewManagerTransaction; | 27 class ViewManagerTransaction; |
| 27 | 28 |
| 28 // Manages the connection with the View Manager service. | 29 // Manages the connection with the View Manager service. |
| 29 class ViewManagerClientImpl : public ViewManager, | 30 class ViewManagerClientImpl : public ViewManager, |
| 30 public InterfaceImpl<ViewManagerClient> { | 31 public InterfaceImpl<ViewManagerClient> { |
| 31 public: | 32 public: |
| 32 explicit ViewManagerClientImpl(ApplicationConnection* connection, | 33 explicit ViewManagerClientImpl(ViewManagerDelegate* delegate); |
| 33 ViewManagerDelegate* delegate); | |
| 34 virtual ~ViewManagerClientImpl(); | 34 virtual ~ViewManagerClientImpl(); |
| 35 | 35 |
| 36 bool connected() const { return connected_; } | 36 bool connected() const { return connected_; } |
| 37 ConnectionSpecificId connection_id() const { return connection_id_; } | 37 ConnectionSpecificId connection_id() const { return connection_id_; } |
| 38 | 38 |
| 39 // API exposed to the node/view implementations that pushes local changes to | 39 // API exposed to the node/view implementations that pushes local changes to |
| 40 // the service. | 40 // the service. |
| 41 Id CreateNode(); | 41 Id CreateNode(); |
| 42 void DestroyNode(Id node_id); | 42 void DestroyNode(Id node_id); |
| 43 | 43 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 ViewManagerService* service_; | 162 ViewManagerService* service_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 164 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace view_manager | 167 } // namespace view_manager |
| 168 } // namespace mojo | 168 } // namespace mojo |
| 169 | 169 |
| 170 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 170 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| OLD | NEW |