OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/apps/chrome_app_delegate.h" | 5 #include "chrome/browser/ui/apps/chrome_app_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "content/public/browser/browser_context.h" | 32 #include "content/public/browser/browser_context.h" |
33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
34 #include "content/public/browser/host_zoom_map.h" | 34 #include "content/public/browser/host_zoom_map.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/render_view_host.h" | 36 #include "content/public/browser/render_view_host.h" |
37 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
38 #include "content/public/browser/web_contents_delegate.h" | 38 #include "content/public/browser/web_contents_delegate.h" |
39 #include "extensions/common/constants.h" | 39 #include "extensions/common/constants.h" |
40 | 40 |
41 #if defined(USE_ASH) | 41 #if defined(USE_ASH) |
42 #include "ash/shelf/shelf_constants.h" | 42 #include "ash/common/shelf/shelf_constants.h" |
43 #endif | 43 #endif |
44 | 44 |
45 #if defined(ENABLE_PRINTING) | 45 #if defined(ENABLE_PRINTING) |
46 #if defined(ENABLE_PRINT_PREVIEW) | 46 #if defined(ENABLE_PRINT_PREVIEW) |
47 #include "chrome/browser/printing/print_preview_message_handler.h" | 47 #include "chrome/browser/printing/print_preview_message_handler.h" |
48 #include "chrome/browser/printing/print_view_manager.h" | 48 #include "chrome/browser/printing/print_view_manager.h" |
49 #else | 49 #else |
50 #include "chrome/browser/printing/print_view_manager_basic.h" | 50 #include "chrome/browser/printing/print_view_manager_basic.h" |
51 #endif // defined(ENABLE_PRINT_PREVIEW) | 51 #endif // defined(ENABLE_PRINT_PREVIEW) |
52 #endif // defined(ENABLE_PRINTING) | 52 #endif // defined(ENABLE_PRINTING) |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 const content::NotificationDetails& details) { | 338 const content::NotificationDetails& details) { |
339 switch (type) { | 339 switch (type) { |
340 case chrome::NOTIFICATION_APP_TERMINATING: | 340 case chrome::NOTIFICATION_APP_TERMINATING: |
341 if (!terminating_callback_.is_null()) | 341 if (!terminating_callback_.is_null()) |
342 terminating_callback_.Run(); | 342 terminating_callback_.Run(); |
343 break; | 343 break; |
344 default: | 344 default: |
345 NOTREACHED() << "Received unexpected notification"; | 345 NOTREACHED() << "Received unexpected notification"; |
346 } | 346 } |
347 } | 347 } |
OLD | NEW |