| 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_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "components/view_manager/public/cpp/types.h" | 8 #include "components/view_manager/public/cpp/types.h" |
| 9 #include "components/view_manager/public/cpp/view.h" | 9 #include "components/view_manager/public/cpp/view.h" |
| 10 #include "components/view_manager/public/cpp/view_manager.h" | 10 #include "components/view_manager/public/cpp/view_manager.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 void SetBounds(Id view_id, const Rect& bounds); | 49 void SetBounds(Id view_id, const Rect& bounds); |
| 50 void SetSurfaceId(Id view_id, SurfaceIdPtr surface_id); | 50 void SetSurfaceId(Id view_id, SurfaceIdPtr surface_id); |
| 51 void SetFocus(Id view_id); | 51 void SetFocus(Id view_id); |
| 52 void SetVisible(Id view_id, bool visible); | 52 void SetVisible(Id view_id, bool visible); |
| 53 void SetProperty(Id view_id, | 53 void SetProperty(Id view_id, |
| 54 const std::string& name, | 54 const std::string& name, |
| 55 const std::vector<uint8_t>& data); | 55 const std::vector<uint8_t>& data); |
| 56 | 56 |
| 57 void Embed(const String& url, Id view_id); | 57 void Embed(const String& url, Id view_id); |
| 58 void Embed(const String& url, | 58 void Embed(mojo::URLRequestPtr request, |
| 59 Id view_id, | 59 Id view_id, |
| 60 InterfaceRequest<ServiceProvider> services, | 60 InterfaceRequest<ServiceProvider> services, |
| 61 ServiceProviderPtr exposed_services); | 61 ServiceProviderPtr exposed_services); |
| 62 void Embed(Id view_id, ViewManagerClientPtr client); | 62 void Embed(Id view_id, ViewManagerClientPtr client); |
| 63 | 63 |
| 64 void set_change_acked_callback(const Callback<void(void)>& callback) { | 64 void set_change_acked_callback(const Callback<void(void)>& callback) { |
| 65 change_acked_callback_ = callback; | 65 change_acked_callback_ = callback; |
| 66 } | 66 } |
| 67 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } | 67 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } |
| 68 | 68 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 Binding<ViewManagerClient> binding_; | 148 Binding<ViewManagerClient> binding_; |
| 149 ViewManagerServicePtr service_; | 149 ViewManagerServicePtr service_; |
| 150 const bool delete_on_error_; | 150 const bool delete_on_error_; |
| 151 | 151 |
| 152 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 152 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace mojo | 155 } // namespace mojo |
| 156 | 156 |
| 157 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 157 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| OLD | NEW |