1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_
9 #include "ash/launcher/launcher_types.h"
10 #include "ash/shell_delegate.h"
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h"
15 class StatusAreaHostAura
;
22 class ChromeShellDelegate
: public ash::ShellDelegate
{
24 ChromeShellDelegate();
25 virtual ~ChromeShellDelegate();
27 static ChromeShellDelegate
* instance() { return instance_
; }
29 StatusAreaHostAura
* status_area_host() {
30 return status_area_host_
.get();
33 StatusAreaView
* GetStatusArea();
35 // ash::ShellDelegate overrides;
36 virtual views::Widget
* CreateStatusArea() OVERRIDE
;
37 #if defined(OS_CHROMEOS)
38 virtual void LockScreen() OVERRIDE
;
40 virtual void Exit() OVERRIDE
;
41 virtual ash::AppListViewDelegate
* CreateAppListViewDelegate() OVERRIDE
;
42 virtual std::vector
<aura::Window
*> GetCycleWindowList(
44 CycleOrder order
) const OVERRIDE
;
45 virtual void StartPartialScreenshot(
46 ash::ScreenshotDelegate
* screenshot_delegate
) OVERRIDE
;
47 virtual ash::LauncherDelegate
* CreateLauncherDelegate(
48 ash::LauncherModel
* model
) OVERRIDE
;
49 virtual ash::SystemTrayDelegate
* CreateSystemTrayDelegate(
50 ash::SystemTray
* tray
) OVERRIDE
;
51 virtual bool GetOverrideWindowMode(
52 ash::Shell::WindowMode
* window_mode
) OVERRIDE
;
55 static ChromeShellDelegate
* instance_
;
57 scoped_ptr
<StatusAreaHostAura
> status_area_host_
;
59 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate
);
62 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_