blob: e87151663804a9dff30388c6965159a7cdd9fdbe [file] [log] [blame]
Jeff Browneefe8762015-10-27 18:47:38 -07001// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_APP_H_
6#define EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_APP_H_
7
Jeff Brown43ebadc2016-01-26 15:52:06 -08008#include "mojo/ui/view_provider_app.h"
Jeff Browneefe8762015-10-27 18:47:38 -07009
10namespace examples {
11
Jeff Brown43ebadc2016-01-26 15:52:06 -080012class SpinningCubeApp : public mojo::ui::ViewProviderApp {
Jeff Browneefe8762015-10-27 18:47:38 -070013 public:
14 SpinningCubeApp();
15 ~SpinningCubeApp() override;
16
Jeff Brown83365b12016-02-10 11:08:14 -080017 void CreateView(
Jeff Brown43ebadc2016-01-26 15:52:06 -080018 const std::string& connection_url,
Jeff Brown83365b12016-02-10 11:08:14 -080019 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
Viet-Trung Luudb068982016-05-24 13:15:55 -070020 mojo::InterfaceRequest<mojo::ServiceProvider> services) override;
Jeff Brown43ebadc2016-01-26 15:52:06 -080021
Jeff Browneefe8762015-10-27 18:47:38 -070022 private:
Jeff Browneefe8762015-10-27 18:47:38 -070023 DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp);
24};
25
26} // namespace examples
27
28#endif // EXAMPLES_UI_SPINNING_CUBE_SPINNING_CUBE_APP_H_