| 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_VIEW_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
| 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ | 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 View* GetChildById(Id id); | 119 View* GetChildById(Id id); |
| 120 | 120 |
| 121 void SetSurfaceId(SurfaceIdPtr id); | 121 void SetSurfaceId(SurfaceIdPtr id); |
| 122 | 122 |
| 123 // Focus. | 123 // Focus. |
| 124 void SetFocus(); | 124 void SetFocus(); |
| 125 | 125 |
| 126 // Embedding. See view_manager.mojom for details. | 126 // Embedding. See view_manager.mojom for details. |
| 127 void Embed(const String& url); | 127 void Embed(const String& url); |
| 128 void Embed(const String& url, | 128 void Embed(mojo::URLRequestPtr request, |
| 129 InterfaceRequest<ServiceProvider> services, | 129 InterfaceRequest<ServiceProvider> services, |
| 130 ServiceProviderPtr exposed_services); | 130 ServiceProviderPtr exposed_services); |
| 131 void Embed(ViewManagerClientPtr client); | 131 void Embed(ViewManagerClientPtr client); |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 // This class is subclassed only by test classes that provide a public ctor. | 134 // This class is subclassed only by test classes that provide a public ctor. |
| 135 View(); | 135 View(); |
| 136 ~View(); | 136 ~View(); |
| 137 | 137 |
| 138 private: | 138 private: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 std::map<const void*, Value> prop_map_; | 203 std::map<const void*, Value> prop_map_; |
| 204 | 204 |
| 205 MOJO_DISALLOW_COPY_AND_ASSIGN(View); | 205 MOJO_DISALLOW_COPY_AND_ASSIGN(View); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace mojo | 208 } // namespace mojo |
| 209 | 209 |
| 210 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ | 210 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
| OLD | NEW |