| 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 14 matching lines...) Expand all Loading... |
| 25 ~ShellApplicationDelegate() override; | 25 ~ShellApplicationDelegate() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // mojo::ApplicationDelegate: | 28 // mojo::ApplicationDelegate: |
| 29 void Initialize(mojo::ApplicationImpl* app) override; | 29 void Initialize(mojo::ApplicationImpl* app) override; |
| 30 bool ConfigureIncomingConnection( | 30 bool ConfigureIncomingConnection( |
| 31 mojo::ApplicationConnection* connection) override; | 31 mojo::ApplicationConnection* connection) override; |
| 32 | 32 |
| 33 void StartWindowManager(); | 33 void StartWindowManager(); |
| 34 void StartWallpaper(); | 34 void StartWallpaper(); |
| 35 void StartSystemUI(); | 35 void StartShelf(); |
| 36 void StartBrowserDriver(); | 36 void StartBrowserDriver(); |
| 37 void StartQuickLaunch(); | 37 void StartQuickLaunch(); |
| 38 | 38 |
| 39 // Starts the application at |url|, running |restart_callback| if the | 39 // Starts the application at |url|, running |restart_callback| if the |
| 40 // connection to the application is closed. | 40 // connection to the application is closed. |
| 41 void StartRestartableService(const std::string& url, | 41 void StartRestartableService(const std::string& url, |
| 42 const base::Closure& restart_callback); | 42 const base::Closure& restart_callback); |
| 43 | 43 |
| 44 mojo::ApplicationImpl* app_; | 44 mojo::ApplicationImpl* app_; |
| 45 std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_; | 45 std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate); | 47 DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace shell | 50 } // namespace shell |
| 51 } // namespace mash | 51 } // namespace mash |
| 52 | 52 |
| 53 #endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ | 53 #endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_ |
| OLD | NEW |