| 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 CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ |
| 6 #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "apps/app_shim/app_shim_handler_mac.h" | 10 #include "apps/app_shim/app_shim_handler_mac.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void OnFocus(apps::AppShimFocusType focus_type); | 58 void OnFocus(apps::AppShimFocusType focus_type); |
| 59 | 59 |
| 60 void OnSetHidden(bool hidden); | 60 void OnSetHidden(bool hidden); |
| 61 | 61 |
| 62 // Called when the app shim process notifies that the app should quit. | 62 // Called when the app shim process notifies that the app should quit. |
| 63 void OnQuit(); | 63 void OnQuit(); |
| 64 | 64 |
| 65 // apps::AppShimHandler::Host overrides: | 65 // apps::AppShimHandler::Host overrides: |
| 66 virtual void OnAppLaunchComplete(apps::AppShimLaunchResult result) OVERRIDE; | 66 virtual void OnAppLaunchComplete(apps::AppShimLaunchResult result) OVERRIDE; |
| 67 virtual void OnAppClosed() OVERRIDE; | 67 virtual void OnAppClosed() OVERRIDE; |
| 68 virtual void OnAppHide() OVERRIDE; |
| 68 virtual void OnAppRequestUserAttention() OVERRIDE; | 69 virtual void OnAppRequestUserAttention() OVERRIDE; |
| 69 virtual base::FilePath GetProfilePath() const OVERRIDE; | 70 virtual base::FilePath GetProfilePath() const OVERRIDE; |
| 70 virtual std::string GetAppId() const OVERRIDE; | 71 virtual std::string GetAppId() const OVERRIDE; |
| 71 | 72 |
| 72 // Closes the channel and destroys the AppShimHost. | 73 // Closes the channel and destroys the AppShimHost. |
| 73 void Close(); | 74 void Close(); |
| 74 | 75 |
| 75 scoped_ptr<IPC::ChannelProxy> channel_; | 76 scoped_ptr<IPC::ChannelProxy> channel_; |
| 76 std::string app_id_; | 77 std::string app_id_; |
| 77 base::FilePath profile_path_; | 78 base::FilePath profile_path_; |
| 78 bool initial_launch_finished_; | 79 bool initial_launch_finished_; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ | 82 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_ |
| OLD | NEW |