| 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_SHELL_SHELL_APPLICATION_DELEGATE_H_ | 5 #ifndef MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ |
| 6 #define MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ | 6 #define MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // mojo::InterfaceFactory<mash::shell::mojom::Shell>: | 43 // mojo::InterfaceFactory<mash::shell::mojom::Shell>: |
| 44 void Create(mojo::ApplicationConnection* connection, | 44 void Create(mojo::ApplicationConnection* connection, |
| 45 mojo::InterfaceRequest<mash::shell::mojom::Shell> r) override; | 45 mojo::InterfaceRequest<mash::shell::mojom::Shell> r) override; |
| 46 | 46 |
| 47 void StartWindowManager(); | 47 void StartWindowManager(); |
| 48 void StartWallpaper(); | 48 void StartWallpaper(); |
| 49 void StartShelf(); | 49 void StartShelf(); |
| 50 void StartBrowserDriver(); | 50 void StartBrowserDriver(); |
| 51 void StartQuickLaunch(); | 51 void StartQuickLaunch(); |
| 52 void StartSysUI(); |
| 52 | 53 |
| 53 void StartScreenlock(); | 54 void StartScreenlock(); |
| 54 void StopScreenlock(); | 55 void StopScreenlock(); |
| 55 | 56 |
| 56 // Starts the application at |url|, running |restart_callback| if the | 57 // Starts the application at |url|, running |restart_callback| if the |
| 57 // connection to the application is closed. | 58 // connection to the application is closed. |
| 58 void StartRestartableService(const std::string& url, | 59 void StartRestartableService(const std::string& url, |
| 59 const base::Closure& restart_callback); | 60 const base::Closure& restart_callback); |
| 60 | 61 |
| 61 mojo::ApplicationImpl* app_; | 62 mojo::ApplicationImpl* app_; |
| 62 std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_; | 63 std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_; |
| 63 mojo::WeakBindingSet<mash::shell::mojom::Shell> bindings_; | 64 mojo::WeakBindingSet<mash::shell::mojom::Shell> bindings_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate); | 66 DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace shell | 69 } // namespace shell |
| 69 } // namespace mash | 70 } // namespace mash |
| 70 | 71 |
| 71 #endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ | 72 #endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ |
| OLD | NEW |