| 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_window_delegate.h" | 5 #include "chrome/browser/ui/apps/chrome_app_window_delegate.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 10 #include "chrome/browser/file_select_helper.h" | 10 #include "chrome/browser/file_select_helper.h" |
| 11 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 11 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
| 12 #include "chrome/browser/platform_util.h" | 12 #include "chrome/browser/platform_util.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/shell_integration.h" | 14 #include "chrome/browser/shell_integration.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_dialogs.h" | 16 #include "chrome/browser/ui/browser_dialogs.h" |
| 17 #include "chrome/browser/ui/browser_tabstrip.h" | 17 #include "chrome/browser/ui/browser_tabstrip.h" |
| 18 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
| 19 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 19 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
| 20 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
| 21 #include "content/public/browser/browser_context.h" | 21 #include "content/public/browser/browser_context.h" |
| 22 #include "content/public/browser/render_view_host.h" | 22 #include "content/public/browser/render_view_host.h" |
| 23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
| 24 #include "content/public/browser/web_contents_delegate.h" | 24 #include "content/public/browser/web_contents_delegate.h" |
| 25 #include "content/public/browser/web_contents_view.h" | 25 #include "content/public/browser/web_contents_view.h" |
| 26 #include "extensions/common/constants.h" |
| 26 | 27 |
| 27 #if defined(USE_ASH) | 28 #if defined(USE_ASH) |
| 28 #include "ash/shelf/shelf_constants.h" | 29 #include "ash/shelf/shelf_constants.h" |
| 29 #endif | 30 #endif |
| 30 | 31 |
| 31 #if defined(ENABLE_PRINTING) | 32 #if defined(ENABLE_PRINTING) |
| 32 #if defined(ENABLE_FULL_PRINTING) | 33 #if defined(ENABLE_FULL_PRINTING) |
| 33 #include "chrome/browser/printing/print_preview_message_handler.h" | 34 #include "chrome/browser/printing/print_preview_message_handler.h" |
| 34 #include "chrome/browser/printing/print_view_manager.h" | 35 #include "chrome/browser/printing/print_view_manager.h" |
| 35 #else | 36 #else |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 if (host) { | 240 if (host) { |
| 240 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( | 241 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( |
| 241 host->GetRoutingID(), blocked)); | 242 host->GetRoutingID(), blocked)); |
| 242 } | 243 } |
| 243 } | 244 } |
| 244 | 245 |
| 245 bool ChromeAppWindowDelegate::IsWebContentsVisible( | 246 bool ChromeAppWindowDelegate::IsWebContentsVisible( |
| 246 content::WebContents* web_contents) { | 247 content::WebContents* web_contents) { |
| 247 return platform_util::IsVisible(web_contents->GetView()->GetNativeView()); | 248 return platform_util::IsVisible(web_contents->GetView()->GetNativeView()); |
| 248 } | 249 } |
| OLD | NEW |