| 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 "apps/shell/browser/shell_app_window_delegate.h" | 5 #include "apps/shell/browser/shell_app_window_delegate.h" |
| 6 | 6 |
| 7 #include "apps/ui/views/base_native_app_window_views.h" | 7 #include "apps/ui/views/native_app_window_views.h" |
| 8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 9 #include "content/public/browser/web_contents_view.h" | 9 #include "content/public/browser/web_contents_view.h" |
| 10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| 11 | 11 |
| 12 namespace apps { | 12 namespace apps { |
| 13 | 13 |
| 14 ShellAppWindowDelegate::ShellAppWindowDelegate() {} | 14 ShellAppWindowDelegate::ShellAppWindowDelegate() {} |
| 15 | 15 |
| 16 ShellAppWindowDelegate::~ShellAppWindowDelegate() {} | 16 ShellAppWindowDelegate::~ShellAppWindowDelegate() {} |
| 17 | 17 |
| 18 void ShellAppWindowDelegate::InitWebContents( | 18 void ShellAppWindowDelegate::InitWebContents( |
| 19 content::WebContents* web_contents) {} | 19 content::WebContents* web_contents) {} |
| 20 | 20 |
| 21 NativeAppWindow* ShellAppWindowDelegate::CreateNativeAppWindow( | 21 NativeAppWindow* ShellAppWindowDelegate::CreateNativeAppWindow( |
| 22 AppWindow* window, | 22 AppWindow* window, |
| 23 const AppWindow::CreateParams& params) { | 23 const AppWindow::CreateParams& params) { |
| 24 BaseNativeAppWindowViews* native_app_window = new BaseNativeAppWindowViews; | 24 NativeAppWindowViews* native_app_window = new NativeAppWindowViews; |
| 25 native_app_window->Init(window, params); | 25 native_app_window->Init(window, params); |
| 26 return native_app_window; | 26 return native_app_window; |
| 27 } | 27 } |
| 28 | 28 |
| 29 content::WebContents* ShellAppWindowDelegate::OpenURLFromTab( | 29 content::WebContents* ShellAppWindowDelegate::OpenURLFromTab( |
| 30 content::BrowserContext* context, | 30 content::BrowserContext* context, |
| 31 content::WebContents* source, | 31 content::WebContents* source, |
| 32 const content::OpenURLParams& params) { | 32 const content::OpenURLParams& params) { |
| 33 return NULL; | 33 return NULL; |
| 34 } | 34 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 content::WebContents* web_contents, | 72 content::WebContents* web_contents, |
| 73 bool blocked) {} | 73 bool blocked) {} |
| 74 | 74 |
| 75 bool ShellAppWindowDelegate::IsWebContentsVisible( | 75 bool ShellAppWindowDelegate::IsWebContentsVisible( |
| 76 content::WebContents* web_contents) { | 76 content::WebContents* web_contents) { |
| 77 aura::Window* native_window = web_contents->GetView()->GetNativeView(); | 77 aura::Window* native_window = web_contents->GetView()->GetNativeView(); |
| 78 return native_window->IsVisible(); | 78 return native_window->IsVisible(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace apps | 81 } // namespace apps |
| OLD | NEW |