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_PUBLIC_CPP_VIEW_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 | 117 |
118 View* GetChildById(Id id); | 118 View* GetChildById(Id id); |
119 | 119 |
120 void SetSurfaceId(SurfaceIdPtr id); | 120 void SetSurfaceId(SurfaceIdPtr id); |
121 | 121 |
122 // Focus. | 122 // Focus. |
123 void SetFocus(); | 123 void SetFocus(); |
124 | 124 |
125 // Embedding. | 125 // Embedding. |
126 void Embed(const String& url); | 126 void Embed(const String& url); |
127 scoped_ptr<ServiceProvider> Embed( | |
128 const String& url, | |
129 scoped_ptr<ServiceProviderImpl> exported_services); | |
130 void Embed(const String& url, | 127 void Embed(const String& url, |
131 InterfaceRequest<ServiceProvider> service_provider); | 128 InterfaceRequest<ServiceProvider> services, |
sky
2015/01/21 16:59:00
This is subtle. It's worth documenting the differe
jamesr
2015/01/21 18:51:40
It's the same as in application.mojom and the docu
| |
129 ServiceProviderPtr exposed_services); | |
132 | 130 |
133 protected: | 131 protected: |
134 // This class is subclassed only by test classes that provide a public ctor. | 132 // This class is subclassed only by test classes that provide a public ctor. |
135 View(); | 133 View(); |
136 ~View(); | 134 ~View(); |
137 | 135 |
138 private: | 136 private: |
139 friend class ViewPrivate; | 137 friend class ViewPrivate; |
140 friend class ViewManagerClientImpl; | 138 friend class ViewManagerClientImpl; |
141 | 139 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 }; | 195 }; |
198 | 196 |
199 std::map<const void*, Value> prop_map_; | 197 std::map<const void*, Value> prop_map_; |
200 | 198 |
201 DISALLOW_COPY_AND_ASSIGN(View); | 199 DISALLOW_COPY_AND_ASSIGN(View); |
202 }; | 200 }; |
203 | 201 |
204 } // namespace mojo | 202 } // namespace mojo |
205 | 203 |
206 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ | 204 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ |
OLD | NEW |