OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_TEST_SHELL_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SHELL_DELEGATE_H_ |
6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace test { | 13 namespace test { |
14 | 14 |
15 class TestShellDelegate : public ShellDelegate { | 15 class TestShellDelegate : public ShellDelegate { |
16 public: | 16 public: |
17 TestShellDelegate(); | 17 TestShellDelegate(); |
18 virtual ~TestShellDelegate(); | 18 virtual ~TestShellDelegate(); |
19 | 19 |
20 void SetOverrideWindowMode(Shell::WindowMode window_mode); | 20 void SetOverrideWindowMode(Shell::WindowMode window_mode); |
21 | 21 |
22 // Overridden from ShellDelegate: | 22 // Overridden from ShellDelegate: |
23 virtual views::Widget* CreateStatusArea() OVERRIDE; | 23 virtual views::Widget* CreateStatusArea() OVERRIDE; |
24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
25 virtual void LockScreen() OVERRIDE; | 25 virtual void LockScreen() OVERRIDE; |
26 #endif | 26 #endif |
27 virtual void Exit() OVERRIDE; | 27 virtual void Exit() OVERRIDE; |
28 virtual void BuildAppListModel(AppListModel* model) OVERRIDE; | |
29 virtual AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 28 virtual AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
30 virtual std::vector<aura::Window*> GetCycleWindowList( | 29 virtual std::vector<aura::Window*> GetCycleWindowList( |
31 CycleSource source, | 30 CycleSource source, |
32 CycleOrder order) const OVERRIDE; | 31 CycleOrder order) const OVERRIDE; |
33 virtual void StartPartialScreenshot( | 32 virtual void StartPartialScreenshot( |
34 ScreenshotDelegate* screenshot_delegate) OVERRIDE; | 33 ScreenshotDelegate* screenshot_delegate) OVERRIDE; |
35 virtual LauncherDelegate* CreateLauncherDelegate( | 34 virtual LauncherDelegate* CreateLauncherDelegate( |
36 ash::LauncherModel* model) OVERRIDE; | 35 ash::LauncherModel* model) OVERRIDE; |
37 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* t) OVERRIDE; | 36 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* t) OVERRIDE; |
38 virtual bool GetOverrideWindowMode(Shell::WindowMode* window_mode) OVERRIDE; | 37 virtual bool GetOverrideWindowMode(Shell::WindowMode* window_mode) OVERRIDE; |
39 | 38 |
40 private: | 39 private: |
41 bool override_window_mode_; | 40 bool override_window_mode_; |
42 Shell::WindowMode window_mode_; | 41 Shell::WindowMode window_mode_; |
43 | 42 |
44 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
45 }; | 44 }; |
46 | 45 |
47 } // namespace test | 46 } // namespace test |
48 } // namespace ash | 47 } // namespace ash |
49 | 48 |
50 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 49 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |