// 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/test/test_shell_delegate.h" #include #include "ash/screenshot_delegate.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/test/test_launcher_delegate.h" #include "grit/ui_resources.h" #include "ui/aura/window.h" namespace ash { namespace test { TestShellDelegate::TestShellDelegate() : locked_(false) { } TestShellDelegate::~TestShellDelegate() { } bool TestShellDelegate::IsUserLoggedIn() { return true; } void TestShellDelegate::LockScreen() { locked_ = true; } void TestShellDelegate::UnlockScreen() { locked_ = false; } bool TestShellDelegate::IsScreenLocked() const { return locked_; } void TestShellDelegate::Shutdown() { } void TestShellDelegate::Exit() { } void TestShellDelegate::NewWindow(bool incognito) { } void TestShellDelegate::Search() { } void TestShellDelegate::OpenFileManager() { } void TestShellDelegate::OpenCrosh() { } void TestShellDelegate::OpenMobileSetup() { } AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { return NULL; } void TestShellDelegate::StartPartialScreenshot( ScreenshotDelegate* screenshot_delegate) { if (screenshot_delegate) screenshot_delegate->HandleTakePartialScreenshot(NULL, gfx::Rect()); } LauncherDelegate* TestShellDelegate::CreateLauncherDelegate( ash::LauncherModel* model) { return new TestLauncherDelegate(model); } SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate( SystemTray* tray) { return NULL; } UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { return NULL; } } // namespace test } // namespace ash