forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell_delegate.h
49 lines (35 loc) · 1.31 KB
/
shell_delegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// 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.
#ifndef ASH_SHELL_DELEGATE_H_
#define ASH_SHELL_DELEGATE_H_
#include <memory>
#include <string>
#include "ash/ash_export.h"
#include "base/callback.h"
#include "base/strings/string16.h"
#include "ui/gfx/native_widget_types.h"
namespace aura {
class Window;
}
namespace ash {
class AccessibilityDelegate;
class ScreenshotDelegate;
// Delegate of the Shell.
class ASH_EXPORT ShellDelegate {
public:
// 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;
// Check whether the current tab of the browser window can go back.
virtual bool CanGoBack(gfx::NativeWindow window) const = 0;
virtual void OpenKeyboardShortcutHelpPage() const {}
};
} // namespace ash
#endif // ASH_SHELL_DELEGATE_H_