OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ | 5 #ifndef MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ | 6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 10 #include "mojo/public/cpp/system/macros.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 | 13 |
14 class ApplicationConnection; | 14 class ApplicationConnection; |
15 class ApplicationImpl; | 15 class ApplicationImpl; |
16 | 16 |
17 // An abstract class that the application may subclass to control various | 17 // An abstract class that the application may subclass to control various |
18 // behaviors of ApplicationImpl. | 18 // behaviors of ApplicationImpl. |
19 class ApplicationDelegate { | 19 class ApplicationDelegate { |
20 public: | 20 public: |
(...skipping 24 matching lines...) Expand all Loading... |
45 // the delegate can no longer rely on the main run loop still running. | 45 // the delegate can no longer rely on the main run loop still running. |
46 virtual void Quit(); | 46 virtual void Quit(); |
47 | 47 |
48 private: | 48 private: |
49 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate); | 49 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace mojo | 52 } // namespace mojo |
53 | 53 |
54 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ | 54 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_DELEGATE_H_ |
OLD | NEW |