blob: 17ce0d56172fe228d45afde65cbe724f5aa0a9fc [file] [log] [blame]
// 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 <memory>
#include <string>
#include "ash/ash_export.h"
#include "base/callback.h"
#include "base/strings/string16.h"
namespace aura {
class Window;
namespace ash {
class AccessibilityDelegate;
class ScreenshotDelegate;
// Delegate of the Shell.
class ASH_EXPORT ShellDelegate {
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
// Returns true if |window| can be shown for the delegate's concept of current
// user.
virtual bool CanShowWindowForUser(const aura::Window* window) const = 0;
// TODO(jamescook): Replace with a mojo-compatible interface.
virtual std::unique_ptr<ScreenshotDelegate> CreateScreenshotDelegate() = 0;
// Creates a accessibility delegate. Shell takes ownership of the delegate.
virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
virtual void OpenKeyboardShortcutHelpPage() const {}
} // namespace ash