Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "content/shell/browser/shell_platform_delegate.h" |
| 6 | |
| 7 | #include "content/public/browser/javascript_dialog_manager.h" |
Dave Tapuska | b499878 | 2020-10-08 17:22:47 | [diff] [blame] | 8 | #include "content/public/browser/web_contents.h" |
arthursonzogni | 75ede19 | 2021-07-06 14:45:46 | [diff] [blame] | 9 | #include "content/shell/browser/shell.h" |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 10 | |
| 11 | namespace content { |
| 12 | |
| 13 | void ShellPlatformDelegate::DidCreateOrAttachWebContents( |
| 14 | Shell* shell, |
| 15 | WebContents* web_contents) {} |
| 16 | |
arthursonzogni | 75ede19 | 2021-07-06 14:45:46 | [diff] [blame] | 17 | void ShellPlatformDelegate::DidCloseLastWindow() { |
| 18 | Shell::Shutdown(); |
| 19 | } |
| 20 | |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 21 | std::unique_ptr<JavaScriptDialogManager> |
| 22 | ShellPlatformDelegate::CreateJavaScriptDialogManager(Shell* shell) { |
| 23 | return nullptr; |
| 24 | } |
| 25 | |
Dave Tapuska | b499878 | 2020-10-08 17:22:47 | [diff] [blame] | 26 | bool ShellPlatformDelegate::HandleRequestToLockMouse( |
| 27 | Shell* shell, |
| 28 | WebContents* web_contents, |
| 29 | bool user_gesture, |
| 30 | bool last_unlocked_by_target) { |
| 31 | return false; |
| 32 | } |
| 33 | |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 34 | bool ShellPlatformDelegate::ShouldAllowRunningInsecureContent(Shell* shell) { |
| 35 | return false; |
| 36 | } |
| 37 | |
| 38 | } // namespace content |