| 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 "extensions/shell/browser/shell_app_delegate.h" | 5 #include "extensions/shell/browser/shell_app_delegate.h" |
| 6 | 6 |
| 7 #include "content/public/browser/web_contents.h" | 7 #include "content/public/browser/web_contents.h" |
| 8 #include "extensions/common/constants.h" | 8 #include "extensions/common/constants.h" |
| 9 #include "extensions/shell/browser/media_capture_util.h" | 9 #include "extensions/shell/browser/media_capture_util.h" |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool ShellAppDelegate::IsWebContentsVisible( | 86 bool ShellAppDelegate::IsWebContentsVisible( |
| 87 content::WebContents* web_contents) { | 87 content::WebContents* web_contents) { |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void ShellAppDelegate::SetTerminatingCallback(const base::Closure& callback) { | 91 void ShellAppDelegate::SetTerminatingCallback(const base::Closure& callback) { |
| 92 // TODO(jamescook): Should app_shell continue to close the app window | 92 // TODO(jamescook): Should app_shell continue to close the app window |
| 93 // manually or should it use a browser termination callback like Chrome? | 93 // manually or should it use a browser termination callback like Chrome? |
| 94 NOTIMPLEMENTED(); | |
| 95 } | 94 } |
| 96 | 95 |
| 97 void ShellAppDelegate::RenderViewCreated( | 96 void ShellAppDelegate::RenderViewCreated( |
| 98 content::RenderViewHost* render_view_host) { | 97 content::RenderViewHost* render_view_host) { |
| 99 // The views implementation of AppWindow takes focus via SetInitialFocus() | 98 // The views implementation of AppWindow takes focus via SetInitialFocus() |
| 100 // and views::WebView but app_shell is aura-only and must do it manually. | 99 // and views::WebView but app_shell is aura-only and must do it manually. |
| 101 web_contents()->Focus(); | 100 web_contents()->Focus(); |
| 102 } | 101 } |
| 103 | 102 |
| 104 } // namespace extensions | 103 } // namespace extensions |
| OLD | NEW |