| 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_TILE_TILE_APP_H_ | 5 #ifndef EXAMPLES_UI_TILE_TILE_APP_H_ |
| 6 #define EXAMPLES_UI_TILE_TILE_APP_H_ | 6 #define EXAMPLES_UI_TILE_TILE_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 struct TileParams; | 12 struct TileParams; |
| 13 | 13 |
| 14 class TileApp : public mojo::ui::ViewProviderApp { | 14 class TileApp : public mojo::ui::ViewProviderApp { |
| 15 public: | 15 public: |
| 16 TileApp(); | 16 TileApp(); |
| 17 ~TileApp() override; | 17 ~TileApp() override; |
| 18 | 18 |
| 19 void CreateView( | 19 void CreateView( |
| 20 const std::string& connection_url, | 20 const std::string& connection_url, |
| 21 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, | 21 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, |
| 22 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 22 mojo::InterfaceRequest<mojo::ServiceProvider> services) override; |
| 23 mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services) override; | |
| 24 | 23 |
| 25 private: | 24 private: |
| 26 bool ParseParams(const std::string& connection_url, TileParams* params); | 25 bool ParseParams(const std::string& connection_url, TileParams* params); |
| 27 | 26 |
| 28 DISALLOW_COPY_AND_ASSIGN(TileApp); | 27 DISALLOW_COPY_AND_ASSIGN(TileApp); |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 } // namespace examples | 30 } // namespace examples |
| 32 | 31 |
| 33 #endif // EXAMPLES_UI_TILE_TILE_APP_H_ | 32 #endif // EXAMPLES_UI_TILE_TILE_APP_H_ |
| OLD | NEW |