danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors. All rights reserved. |
| 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" |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 9 | |
| 10 | namespace content { |
| 11 | |
| 12 | void ShellPlatformDelegate::DidCreateOrAttachWebContents( |
| 13 | Shell* shell, |
| 14 | WebContents* web_contents) {} |
| 15 | |
| 16 | std::unique_ptr<JavaScriptDialogManager> |
| 17 | ShellPlatformDelegate::CreateJavaScriptDialogManager(Shell* shell) { |
| 18 | return nullptr; |
| 19 | } |
| 20 | |
| 21 | std::unique_ptr<BluetoothChooser> ShellPlatformDelegate::RunBluetoothChooser( |
| 22 | Shell* shell, |
| 23 | RenderFrameHost* frame, |
| 24 | const BluetoothChooser::EventHandler& event_handler) { |
| 25 | return nullptr; |
| 26 | } |
| 27 | |
Dave Tapuska | b499878 | 2020-10-08 17:22:47 | [diff] [blame^] | 28 | bool ShellPlatformDelegate::HandleRequestToLockMouse( |
| 29 | Shell* shell, |
| 30 | WebContents* web_contents, |
| 31 | bool user_gesture, |
| 32 | bool last_unlocked_by_target) { |
| 33 | return false; |
| 34 | } |
| 35 | |
danakj | 8de3b749 | 2020-07-02 22:41:42 | [diff] [blame] | 36 | bool ShellPlatformDelegate::ShouldAllowRunningInsecureContent(Shell* shell) { |
| 37 | return false; |
| 38 | } |
| 39 | |
| 40 | } // namespace content |