OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_ | |
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_ | |
7 | |
8 #include "mojo/public/cpp/system/core.h" | |
9 | |
10 namespace mojo { | |
11 | |
12 class ApplicationDelegate; | |
13 | |
14 class ApplicationRunner { | |
15 public: | |
16 ApplicationRunner(); | |
17 ~ApplicationRunner(); | |
18 | |
19 void take_delegate(ApplicationDelegate* delegate); | |
DaveMoore
2014/08/07 01:54:33
take_delegate()? Why not set_delegate()? And why i
tim (not reviewing)
2014/08/07 17:13:21
I wanted to convey ownership without being able to
DaveMoore
2014/08/07 18:12:36
What I don't like about it is that ARC inherits fr
tim (not reviewing)
2014/08/07 18:46:49
Oh, but it doesn't inherit :) I explicitly avoided
darin (slow to review)
2014/08/07 20:08:48
take_delegate() bothers me too :)
Why do you need
tim (not reviewing)
2014/08/07 22:05:32
Will rename. I guess I was thinking the Applicatio
| |
20 MojoResult Run(MojoHandle shell_handle); | |
21 | |
22 private: | |
23 // Optional delegate. | |
24 ApplicationDelegate* delegate_; | |
25 }; | |
26 | |
27 } // namespace mojo | |
28 | |
29 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_RUNNER_H_ | |
OLD | NEW |