blob: aac517ecdef33d78be7c18a4bf889cccfbd254b6 [file] [log] [blame]
[email protected]40c4cbb2012-01-10 23:26:071// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]f7eb89c2011-12-13 09:48:542// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
James Cook346c8c62017-07-18 19:38:375#include "ash/test_shell_delegate.h"
[email protected]f7eb89c2011-12-13 09:48:546
Qiang Xu89af823e2017-12-05 04:04:477#include "ash/accessibility/default_accessibility_delegate.h"
James Cookb0bf8e82017-04-09 17:01:448#include "ash/system/tray/system_tray_notifier.h"
James Cook5e9d3402017-11-01 00:20:129#include "ash/test_screenshot_delegate.h"
[email protected]fcb123d2013-04-17 15:58:4910#include "base/logging.h"
afakhrycd2bb98d2015-09-09 09:03:4211#include "ui/gfx/image/image.h"
[email protected]40c4cbb2012-01-10 23:26:0712
[email protected]55f593352011-12-24 05:42:4613namespace ash {
[email protected]f7eb89c2011-12-13 09:48:5414
warx67a6d3f2017-05-31 21:00:2115TestShellDelegate::TestShellDelegate() = default;
[email protected]f7eb89c2011-12-13 09:48:5416
warx67a6d3f2017-05-31 21:00:2117TestShellDelegate::~TestShellDelegate() = default;
[email protected]f7eb89c2011-12-13 09:48:5418
Andrew Xu048f24b2019-01-16 21:21:2319bool TestShellDelegate::CanShowWindowForUser(const aura::Window* window) const {
ben894584d2015-09-30 23:56:5320 return true;
21}
22
James Cook5e9d3402017-11-01 00:20:1223std::unique_ptr<ScreenshotDelegate>
24TestShellDelegate::CreateScreenshotDelegate() {
25 return std::make_unique<TestScreenshotDelegate>();
26}
27
[email protected]f3ab6eff52013-10-24 03:29:3828AccessibilityDelegate* TestShellDelegate::CreateAccessibilityDelegate() {
Qiang Xu89af823e2017-12-05 04:04:4729 return new DefaultAccessibilityDelegate;
[email protected]f3ab6eff52013-10-24 03:29:3830}
31
minch64f3b43b2019-10-21 21:59:2632bool TestShellDelegate::CanGoBack(gfx::NativeWindow window) const {
minch4553eb02019-11-20 23:25:4733 return can_go_back_;
34}
35
Ken Rockot3f90e70e02019-12-04 23:27:2336void TestShellDelegate::BindNavigableContentsFactory(
37 mojo::PendingReceiver<content::mojom::NavigableContentsFactory> receiver) {}
38
minch4553eb02019-11-20 23:25:4739void TestShellDelegate::SetCanGoBack(bool can_go_back) {
40 can_go_back_ = can_go_back;
minch64f3b43b2019-10-21 21:59:2641}
42
[email protected]55f593352011-12-24 05:42:4643} // namespace ash