aura: Implement app list M19 mock.
[chromium-blink-merge.git] / chrome / browser / ui / views / aura / chrome_shell_delegate.h
blob2bd6c3dcb72b15c9817cb6ee956647823c1015d8
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_
7 #pragma once
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;
16 class StatusAreaView;
18 namespace views {
19 class View;
22 class ChromeShellDelegate : public ash::ShellDelegate {
23 public:
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;
39 #endif
40 virtual void Exit() OVERRIDE;
41 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
42 virtual std::vector<aura::Window*> GetCycleWindowList(
43 CycleSource source,
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;
54 private:
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_