| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ash/shell/shell_delegate_impl.h" |
| |
| #include <memory> |
| |
| #include "ash/accessibility/default_accessibility_delegate.h" |
| #include "ash/test_screenshot_delegate.h" |
| #include "ash/wm/gestures/back_gesture/test_back_gesture_contextual_nudge_delegate.h" |
| |
| namespace ash { |
| namespace shell { |
| |
| ShellDelegateImpl::ShellDelegateImpl() = default; |
| |
| ShellDelegateImpl::~ShellDelegateImpl() = default; |
| |
| bool ShellDelegateImpl::CanShowWindowForUser(const aura::Window* window) const { |
| return true; |
| } |
| |
| std::unique_ptr<ash::ScreenshotDelegate> |
| ShellDelegateImpl::CreateScreenshotDelegate() { |
| return std::make_unique<TestScreenshotDelegate>(); |
| } |
| |
| AccessibilityDelegate* ShellDelegateImpl::CreateAccessibilityDelegate() { |
| return new DefaultAccessibilityDelegate; |
| } |
| |
| std::unique_ptr<BackGestureContextualNudgeDelegate> |
| ShellDelegateImpl::CreateBackGestureContextualNudgeDelegate( |
| BackGestureContextualNudgeController* controller) { |
| return std::make_unique<TestBackGestureContextualNudgeDelegate>(controller); |
| } |
| |
| bool ShellDelegateImpl::CanGoBack(gfx::NativeWindow window) const { |
| return true; |
| } |
| |
| void ShellDelegateImpl::BindNavigableContentsFactory( |
| mojo::PendingReceiver<content::mojom::NavigableContentsFactory> receiver) {} |
| |
| void ShellDelegateImpl::BindMultiDeviceSetup( |
| mojo::PendingReceiver<chromeos::multidevice_setup::mojom::MultiDeviceSetup> |
| receiver) {} |
| |
| } // namespace shell |
| } // namespace ash |