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 #include "apps/app_shim/extension_app_shim_handler_mac.h" | 5 #include "apps/app_shim/extension_app_shim_handler_mac.h" |
6 | 6 |
7 #include "apps/app_shim/app_shim_messages.h" | 7 #include "apps/app_shim/app_shim_messages.h" |
| 8 #include "apps/shell_window.h" |
8 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "chrome/browser/extensions/extension_host.h" | 11 #include "chrome/browser/extensions/extension_host.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_system.h" | 13 #include "chrome/browser/extensions/extension_system.h" |
13 #include "chrome/browser/extensions/shell_window_registry.h" | 14 #include "chrome/browser/extensions/shell_window_registry.h" |
14 #include "chrome/browser/ui/extensions/application_launch.h" | 15 #include "chrome/browser/ui/extensions/application_launch.h" |
15 #include "chrome/browser/ui/extensions/native_app_window.h" | 16 #include "chrome/browser/ui/extensions/native_app_window.h" |
16 #include "chrome/browser/ui/extensions/shell_window.h" | |
17 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 17 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
18 #include "chrome/browser/web_applications/web_app_mac.h" | 18 #include "chrome/browser/web_applications/web_app_mac.h" |
19 #include "ui/base/cocoa/focus_window_set.h" | 19 #include "ui/base/cocoa/focus_window_set.h" |
20 | 20 |
21 namespace apps { | 21 namespace apps { |
22 | 22 |
23 ExtensionAppShimHandler::ExtensionAppShimHandler() { | 23 ExtensionAppShimHandler::ExtensionAppShimHandler() { |
24 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_CREATED, | 24 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_CREATED, |
25 content::NotificationService::AllBrowserContextsAndSources()); | 25 content::NotificationService::AllBrowserContextsAndSources()); |
26 } | 26 } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 | 164 |
165 void ExtensionAppShimHandler::CloseShim(Profile* profile, | 165 void ExtensionAppShimHandler::CloseShim(Profile* profile, |
166 const std::string& app_id) { | 166 const std::string& app_id) { |
167 HostMap::const_iterator it = hosts_.find(make_pair(profile, app_id)); | 167 HostMap::const_iterator it = hosts_.find(make_pair(profile, app_id)); |
168 if (it != hosts_.end()) | 168 if (it != hosts_.end()) |
169 it->second->OnAppClosed(); | 169 it->second->OnAppClosed(); |
170 } | 170 } |
171 | 171 |
172 } // namespace apps | 172 } // namespace apps |
OLD | NEW |