Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: apps/app_shim/extension_app_shim_handler_mac.cc

Issue 16702003: Move ShellWindow into apps component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
23 #include "ui/base/cocoa/focus_window_set.h" 23 #include "ui/base/cocoa/focus_window_set.h"
24 24
25 namespace apps { 25 namespace apps {
26 26
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 void ExtensionAppShimHandler::CloseShim(Profile* profile, 169 void ExtensionAppShimHandler::CloseShim(Profile* profile,
170 const std::string& app_id) { 170 const std::string& app_id) {
171 HostMap::const_iterator it = hosts_.find(make_pair(profile, app_id)); 171 HostMap::const_iterator it = hosts_.find(make_pair(profile, app_id));
172 if (it != hosts_.end()) 172 if (it != hosts_.end())
173 it->second->OnAppClosed(); 173 it->second->OnAppClosed();
174 } 174 }
175 175
176 } // namespace apps 176 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698