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 MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ | 5 #ifndef MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ |
6 #define MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ | 6 #define MASH_EXAMPLE_VIEWS_EXAMPLES_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 "mojo/application/public/cpp/application_delegate.h" | |
11 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
| 11 #include "mojo/shell/public/cpp/application_delegate.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 class AuraInit; | 14 class AuraInit; |
15 } | 15 } |
16 | 16 |
17 class ViewsExamplesApplicationDelegate : public mojo::ApplicationDelegate { | 17 class ViewsExamplesApplicationDelegate : public mojo::ApplicationDelegate { |
18 public: | 18 public: |
19 ViewsExamplesApplicationDelegate(); | 19 ViewsExamplesApplicationDelegate(); |
20 ~ViewsExamplesApplicationDelegate() override; | 20 ~ViewsExamplesApplicationDelegate() override; |
21 | 21 |
22 private: | 22 private: |
23 // ApplicationDelegate: | 23 // ApplicationDelegate: |
24 void Initialize(mojo::ApplicationImpl* app) override; | 24 void Initialize(mojo::ApplicationImpl* app) override; |
25 bool ConfigureIncomingConnection( | 25 bool ConfigureIncomingConnection( |
26 mojo::ApplicationConnection* connection) override; | 26 mojo::ApplicationConnection* connection) override; |
27 | 27 |
28 mojo::TracingImpl tracing_; | 28 mojo::TracingImpl tracing_; |
29 | 29 |
30 scoped_ptr<views::AuraInit> aura_init_; | 30 scoped_ptr<views::AuraInit> aura_init_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(ViewsExamplesApplicationDelegate); | 32 DISALLOW_COPY_AND_ASSIGN(ViewsExamplesApplicationDelegate); |
33 }; | 33 }; |
34 | 34 |
35 #endif // MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ | 35 #endif // MASH_EXAMPLE_VIEWS_EXAMPLES_APPLICATION_DELEGATE_H_ |
OLD | NEW |