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 "athena/extensions/chrome/athena_chrome_app_delegate.h" | 5 #include "athena/extensions/chrome/athena_chrome_app_delegate.h" |
6 | 6 |
7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
8 #include "chrome/browser/favicon/favicon_tab_helper.h" | 8 #include "chrome/browser/favicon/favicon_tab_helper.h" |
9 #include "chrome/browser/file_select_helper.h" | 9 #include "chrome/browser/file_select_helper.h" |
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
11 #include "chrome/browser/platform_util.h" | 11 #include "chrome/browser/platform_util.h" |
12 #include "chrome/browser/ui/browser.h" | |
13 #include "chrome/browser/ui/browser_dialogs.h" | 12 #include "chrome/browser/ui/browser_dialogs.h" |
14 #include "chrome/common/extensions/chrome_extension_messages.h" | 13 #include "chrome/common/extensions/chrome_extension_messages.h" |
15 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
17 | 16 |
18 #if defined(ENABLE_PRINTING) | 17 #if defined(ENABLE_PRINTING) |
19 #if defined(ENABLE_FULL_PRINTING) | 18 #if defined(ENABLE_FULL_PRINTING) |
20 #include "chrome/browser/printing/print_preview_message_handler.h" | 19 #include "chrome/browser/printing/print_preview_message_handler.h" |
21 #include "chrome/browser/printing/print_view_manager.h" | 20 #include "chrome/browser/printing/print_view_manager.h" |
22 #else | 21 #else |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool blocked) { | 83 bool blocked) { |
85 // RenderViewHost may be NULL during shutdown. | 84 // RenderViewHost may be NULL during shutdown. |
86 content::RenderViewHost* host = web_contents->GetRenderViewHost(); | 85 content::RenderViewHost* host = web_contents->GetRenderViewHost(); |
87 if (host) { | 86 if (host) { |
88 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized(host->GetRoutingID(), | 87 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized(host->GetRoutingID(), |
89 blocked)); | 88 blocked)); |
90 } | 89 } |
91 } | 90 } |
92 | 91 |
93 } // namespace athena | 92 } // namespace athena |
OLD | NEW |