OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 EXAMPLES_UI_SHAPES_SHAPES_APP_H_ | 5 #ifndef EXAMPLES_UI_SHAPES_SHAPES_APP_H_ |
6 #define EXAMPLES_UI_SHAPES_SHAPES_APP_H_ | 6 #define EXAMPLES_UI_SHAPES_SHAPES_APP_H_ |
7 | 7 |
8 #include "mojo/ui/view_provider_app.h" | 8 #include "mojo/ui/view_provider_app.h" |
9 | 9 |
10 namespace examples { | 10 namespace examples { |
11 | 11 |
12 class ShapesApp : public mojo::ui::ViewProviderApp { | 12 class ShapesApp : public mojo::ui::ViewProviderApp { |
13 public: | 13 public: |
14 ShapesApp(); | 14 ShapesApp(); |
15 ~ShapesApp() override; | 15 ~ShapesApp() override; |
16 | 16 |
17 bool CreateView( | 17 void CreateView( |
18 const std::string& connection_url, | 18 const std::string& connection_url, |
| 19 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, |
19 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 20 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
20 mojo::ServiceProviderPtr exposed_services, | 21 mojo::ServiceProviderPtr exposed_services) override; |
21 const mojo::ui::ViewProvider::CreateViewCallback& callback) override; | |
22 | 22 |
23 private: | 23 private: |
24 DISALLOW_COPY_AND_ASSIGN(ShapesApp); | 24 DISALLOW_COPY_AND_ASSIGN(ShapesApp); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace examples | 27 } // namespace examples |
28 | 28 |
29 #endif // EXAMPLES_UI_SHAPES_SHAPES_APP_H_ | 29 #endif // EXAMPLES_UI_SHAPES_SHAPES_APP_H_ |
OLD | NEW |