blob: a8e776ce358313aa5defd7a81fbfa577630d29a2 [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2020 The Chromium Authors
danakj8de3b7492020-07-02 22:41:422// 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 Tapuskab4998782020-10-08 17:22:478#include "content/public/browser/web_contents.h"
arthursonzogni75ede192021-07-06 14:45:469#include "content/shell/browser/shell.h"
danakj8de3b7492020-07-02 22:41:4210
11namespace content {
12
13void ShellPlatformDelegate::DidCreateOrAttachWebContents(
14 Shell* shell,
15 WebContents* web_contents) {}
16
arthursonzogni75ede192021-07-06 14:45:4617void ShellPlatformDelegate::DidCloseLastWindow() {
18 Shell::Shutdown();
19}
20
danakj8de3b7492020-07-02 22:41:4221std::unique_ptr<JavaScriptDialogManager>
22ShellPlatformDelegate::CreateJavaScriptDialogManager(Shell* shell) {
23 return nullptr;
24}
25
Dave Tapuskab4998782020-10-08 17:22:4726bool ShellPlatformDelegate::HandleRequestToLockMouse(
27 Shell* shell,
28 WebContents* web_contents,
29 bool user_gesture,
30 bool last_unlocked_by_target) {
31 return false;
32}
33
danakj8de3b7492020-07-02 22:41:4234bool ShellPlatformDelegate::ShouldAllowRunningInsecureContent(Shell* shell) {
35 return false;
36}
37
38} // namespace content