| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ | 5 #ifndef APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ |
| 6 #define APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ | 6 #define APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 void OnSetHidden(bool hidden); | 63 void OnSetHidden(bool hidden); |
| 64 | 64 |
| 65 // Called when the app shim process notifies that the app should quit. | 65 // Called when the app shim process notifies that the app should quit. |
| 66 void OnQuit(); | 66 void OnQuit(); |
| 67 | 67 |
| 68 // apps::AppShimHandler::Host overrides: | 68 // apps::AppShimHandler::Host overrides: |
| 69 virtual void OnAppLaunchComplete(apps::AppShimLaunchResult result) OVERRIDE; | 69 virtual void OnAppLaunchComplete(apps::AppShimLaunchResult result) OVERRIDE; |
| 70 virtual void OnAppClosed() OVERRIDE; | 70 virtual void OnAppClosed() OVERRIDE; |
| 71 virtual void OnAppHide() OVERRIDE; | 71 virtual void OnAppHide() OVERRIDE; |
| 72 virtual void OnAppRequestUserAttention() OVERRIDE; | 72 virtual void OnAppRequestUserAttention( |
| 73 apps::AppShimAttentionType type) OVERRIDE; |
| 73 virtual base::FilePath GetProfilePath() const OVERRIDE; | 74 virtual base::FilePath GetProfilePath() const OVERRIDE; |
| 74 virtual std::string GetAppId() const OVERRIDE; | 75 virtual std::string GetAppId() const OVERRIDE; |
| 75 | 76 |
| 76 // Closes the channel and destroys the AppShimHost. | 77 // Closes the channel and destroys the AppShimHost. |
| 77 void Close(); | 78 void Close(); |
| 78 | 79 |
| 79 scoped_ptr<IPC::ChannelProxy> channel_; | 80 scoped_ptr<IPC::ChannelProxy> channel_; |
| 80 std::string app_id_; | 81 std::string app_id_; |
| 81 base::FilePath profile_path_; | 82 base::FilePath profile_path_; |
| 82 bool initial_launch_finished_; | 83 bool initial_launch_finished_; |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif // APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ | 86 #endif // APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_ |
| OLD | NEW |