| 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_MANAGER_SERVICE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" |
| 16 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 17 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 17 #include "mojo/services/view_manager/access_policy_delegate.h" | 18 #include "mojo/services/view_manager/access_policy_delegate.h" |
| 18 #include "mojo/services/view_manager/ids.h" | 19 #include "mojo/services/view_manager/ids.h" |
| 19 #include "mojo/services/view_manager/view_manager_export.h" | 20 #include "mojo/services/view_manager/view_manager_export.h" |
| 20 | 21 |
| 21 namespace gfx { | 22 namespace gfx { |
| 22 class Rect; | 23 class Rect; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace mojo { | 26 namespace mojo { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 virtual void RemoveViewFromParent( | 158 virtual void RemoveViewFromParent( |
| 158 Id view_id, | 159 Id view_id, |
| 159 const Callback<void(bool)>& callback) OVERRIDE; | 160 const Callback<void(bool)>& callback) OVERRIDE; |
| 160 virtual void ReorderView(Id view_id, | 161 virtual void ReorderView(Id view_id, |
| 161 Id relative_view_id, | 162 Id relative_view_id, |
| 162 OrderDirection direction, | 163 OrderDirection direction, |
| 163 const Callback<void(bool)>& callback) OVERRIDE; | 164 const Callback<void(bool)>& callback) OVERRIDE; |
| 164 virtual void GetViewTree( | 165 virtual void GetViewTree( |
| 165 Id view_id, | 166 Id view_id, |
| 166 const Callback<void(Array<ViewDataPtr>)>& callback) OVERRIDE; | 167 const Callback<void(Array<ViewDataPtr>)>& callback) OVERRIDE; |
| 167 virtual void SetViewContents(Id view_id, | 168 virtual void SetViewSurfaceId(Id view_id, |
| 168 ScopedSharedBufferHandle buffer, | 169 SurfaceIdPtr surface_id, |
| 169 uint32_t buffer_size, | 170 const Callback<void(bool)>& callback) OVERRIDE; |
| 170 const Callback<void(bool)>& callback) OVERRIDE; | |
| 171 virtual void SetViewBounds(Id view_id, | 171 virtual void SetViewBounds(Id view_id, |
| 172 RectPtr bounds, | 172 RectPtr bounds, |
| 173 const Callback<void(bool)>& callback) OVERRIDE; | 173 const Callback<void(bool)>& callback) OVERRIDE; |
| 174 virtual void SetViewVisibility(Id view_id, | 174 virtual void SetViewVisibility(Id view_id, |
| 175 bool visible, | 175 bool visible, |
| 176 const Callback<void(bool)>& callback) OVERRIDE; | 176 const Callback<void(bool)>& callback) OVERRIDE; |
| 177 virtual void Embed(const String& url, | 177 virtual void Embed(const String& url, |
| 178 Id view_id, | 178 Id view_id, |
| 179 ServiceProviderPtr service_provider, | 179 ServiceProviderPtr service_provider, |
| 180 const Callback<void(bool)>& callback) OVERRIDE; | 180 const Callback<void(bool)>& callback) OVERRIDE; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 #if defined(OS_WIN) | 233 #if defined(OS_WIN) |
| 234 #pragma warning(pop) | 234 #pragma warning(pop) |
| 235 #endif | 235 #endif |
| 236 | 236 |
| 237 } // namespace service | 237 } // namespace service |
| 238 } // namespace mojo | 238 } // namespace mojo |
| 239 | 239 |
| 240 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 240 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |