| 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 "chrome/browser/ui/apps/chrome_shell_window_delegate.h" | 5 #include "chrome/browser/ui/apps/chrome_shell_window_delegate.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.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" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 #if defined(ENABLE_FULL_PRINTING) | 137 #if defined(ENABLE_FULL_PRINTING) |
| 138 printing::PrintViewManager::CreateForWebContents(web_contents); | 138 printing::PrintViewManager::CreateForWebContents(web_contents); |
| 139 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); | 139 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); |
| 140 #else | 140 #else |
| 141 printing::PrintViewManagerBasic::CreateForWebContents(web_contents); | 141 printing::PrintViewManagerBasic::CreateForWebContents(web_contents); |
| 142 #endif // defined(ENABLE_FULL_PRINTING) | 142 #endif // defined(ENABLE_FULL_PRINTING) |
| 143 #endif // defined(ENABLE_PRINTING) | 143 #endif // defined(ENABLE_PRINTING) |
| 144 } | 144 } |
| 145 | 145 |
| 146 apps::NativeAppWindow* ChromeShellWindowDelegate::CreateNativeAppWindow( | 146 apps::NativeAppWindow* ChromeShellWindowDelegate::CreateNativeAppWindow( |
| 147 apps::ShellWindow* window, | 147 apps::AppWindow* window, |
| 148 const apps::ShellWindow::CreateParams& params) { | 148 const apps::AppWindow::CreateParams& params) { |
| 149 return CreateNativeAppWindowImpl(window, params); | 149 return CreateNativeAppWindowImpl(window, params); |
| 150 } | 150 } |
| 151 | 151 |
| 152 content::WebContents* ChromeShellWindowDelegate::OpenURLFromTab( | 152 content::WebContents* ChromeShellWindowDelegate::OpenURLFromTab( |
| 153 content::BrowserContext* context, | 153 content::BrowserContext* context, |
| 154 content::WebContents* source, | 154 content::WebContents* source, |
| 155 const content::OpenURLParams& params) { | 155 const content::OpenURLParams& params) { |
| 156 return OpenURLFromTabInternal(context, source, params); | 156 return OpenURLFromTabInternal(context, source, params); |
| 157 } | 157 } |
| 158 | 158 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 if (host) { | 216 if (host) { |
| 217 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( | 217 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( |
| 218 host->GetRoutingID(), blocked)); | 218 host->GetRoutingID(), blocked)); |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 bool ChromeShellWindowDelegate::IsWebContentsVisible( | 222 bool ChromeShellWindowDelegate::IsWebContentsVisible( |
| 223 content::WebContents* web_contents) { | 223 content::WebContents* web_contents) { |
| 224 return platform_util::IsVisible(web_contents->GetView()->GetNativeView()); | 224 return platform_util::IsVisible(web_contents->GetView()->GetNativeView()); |
| 225 } | 225 } |
| OLD | NEW |