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/extensions/chrome_extension_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 "extensions/common/constants.h" | 25 #include "extensions/common/constants.h" |
26 | 26 |
27 #if defined(USE_ASH) | 27 #if defined(USE_ASH) |
28 #include "ash/shelf/shelf_constants.h" | 28 #include "ash/shelf/shelf_constants.h" |
29 #endif | 29 #endif |
30 | 30 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 if (host) { | 239 if (host) { |
240 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( | 240 host->Send(new ChromeViewMsg_SetVisuallyDeemphasized( |
241 host->GetRoutingID(), blocked)); | 241 host->GetRoutingID(), blocked)); |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 bool ChromeAppWindowDelegate::IsWebContentsVisible( | 245 bool ChromeAppWindowDelegate::IsWebContentsVisible( |
246 content::WebContents* web_contents) { | 246 content::WebContents* web_contents) { |
247 return platform_util::IsVisible(web_contents->GetNativeView()); | 247 return platform_util::IsVisible(web_contents->GetNativeView()); |
248 } | 248 } |
OLD | NEW |