Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: examples/ui/tile/tile_app.h

Issue 1425543002: mozart: Add a simple tiling view manager. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: apply review comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 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_TILE_TILE_APP_H_
6 #define EXAMPLES_UI_TILE_TILE_APP_H_
7
8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/common/strong_binding_set.h"
11 #include "mojo/public/c/system/main.h"
12 #include "mojo/public/cpp/application/application_connection.h"
13 #include "mojo/public/cpp/application/application_impl.h"
14 #include "mojo/public/cpp/system/core.h"
15 #include "mojo/public/cpp/system/macros.h"
16 #include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
17
18 namespace examples {
19
20 class TileApp : public mojo::ApplicationDelegate,
21 public mojo::InterfaceFactory<mojo::ui::ViewProvider> {
22 public:
23 TileApp();
24 ~TileApp() override;
25
26 // |ApplicationDelegate|:
27 void Initialize(mojo::ApplicationImpl* app) override;
28 bool ConfigureIncomingConnection(
29 mojo::ApplicationConnection* connection) override;
30
31 // |InterfaceFactory<mojo::ui::ViewProvider>|:
32 void Create(mojo::ApplicationConnection* connection,
33 mojo::InterfaceRequest<mojo::ui::ViewProvider> request) override;
34
35 mojo::ApplicationImpl* app_impl_;
jamesr 2015/10/27 22:58:27 make members of a class private
jeffbrown 2015/10/27 23:24:19 Fixed. Accidental omission.
36 mojo::StrongBindingSet<mojo::ui::ViewProvider> bindings_;
37
38 DISALLOW_COPY_AND_ASSIGN(TileApp);
jamesr 2015/10/27 22:58:27 this macro in particular only makes sense in the '
39 };
40
41 } // namespace examples
42
43 #endif // EXAMPLES_UI_TILE_TILE_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698