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

Side by Side Diff: components/mus/example/client/client_application_delegate.h

Issue 1390353007: Adds MUSViewsInit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 2 months 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
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 COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_
6 #define COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_ 6 #define COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/mus/public/cpp/view_tree_delegate.h"
11 #include "mojo/application/public/cpp/application_delegate.h" 10 #include "mojo/application/public/cpp/application_delegate.h"
12 #include "mojo/application/public/cpp/interface_factory_impl.h" 11 #include "mojo/application/public/cpp/interface_factory_impl.h"
13 12
14 namespace mandoline { 13 class MUSViewsInit;
15 class AuraInit;
16 }
17 14
18 class ClientApplicationDelegate : public mojo::ApplicationDelegate, 15 class ClientApplicationDelegate : public mojo::ApplicationDelegate {
19 public mus::ViewTreeDelegate {
20 public: 16 public:
21 ClientApplicationDelegate(); 17 ClientApplicationDelegate();
22 ~ClientApplicationDelegate() override; 18 ~ClientApplicationDelegate() override;
23 19
24 // Overridden from ApplicationDelegate:
25 void Initialize(mojo::ApplicationImpl* app) override;
26
27 private: 20 private:
28 // ApplicationDelegate: 21 // ApplicationDelegate:
22 void Initialize(mojo::ApplicationImpl* app) override;
29 bool ConfigureIncomingConnection( 23 bool ConfigureIncomingConnection(
30 mojo::ApplicationConnection* connection) override; 24 mojo::ApplicationConnection* connection) override;
31 25
32 // mus::ViewTreeDelegate:
33 void OnEmbed(mus::View* root) override;
34 void OnConnectionLost(mus::ViewTreeConnection* connection) override;
35
36 mojo::ApplicationImpl* app_; 26 mojo::ApplicationImpl* app_;
37 27
38 scoped_ptr<mandoline::AuraInit> aura_init_; 28 scoped_ptr<MUSViewsInit> mus_views_init_;
39 29
40 DISALLOW_COPY_AND_ASSIGN(ClientApplicationDelegate); 30 DISALLOW_COPY_AND_ASSIGN(ClientApplicationDelegate);
41 }; 31 };
42 32
43 #endif // COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_ 33 #endif // COMPONENTS_MUS_EXAMPLE_CLIENT_CLIENT_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/example/client/BUILD.gn ('k') | components/mus/example/client/client_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698