Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: ash/test/test_shell_delegate.h

Issue 10543158: Do not toggle Applist with Search key press when accessibility is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Overridden from ShellDelegate: 20 // Overridden from ShellDelegate:
21 virtual bool IsUserLoggedIn() OVERRIDE; 21 virtual bool IsUserLoggedIn() OVERRIDE;
22 virtual void LockScreen() OVERRIDE; 22 virtual void LockScreen() OVERRIDE;
23 virtual void UnlockScreen() OVERRIDE; 23 virtual void UnlockScreen() OVERRIDE;
24 virtual bool IsScreenLocked() const OVERRIDE; 24 virtual bool IsScreenLocked() const OVERRIDE;
25 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE;
25 virtual void Shutdown() OVERRIDE; 26 virtual void Shutdown() OVERRIDE;
26 virtual void Exit() OVERRIDE; 27 virtual void Exit() OVERRIDE;
27 virtual void NewTab() OVERRIDE; 28 virtual void NewTab() OVERRIDE;
28 virtual void NewWindow(bool incognito) OVERRIDE; 29 virtual void NewWindow(bool incognito) OVERRIDE;
29 virtual void OpenFileManager(bool as_dialog) OVERRIDE; 30 virtual void OpenFileManager(bool as_dialog) OVERRIDE;
30 virtual void OpenCrosh() OVERRIDE; 31 virtual void OpenCrosh() OVERRIDE;
31 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; 32 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE;
32 virtual void RestoreTab() OVERRIDE; 33 virtual void RestoreTab() OVERRIDE;
33 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; 34 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE;
34 virtual void ShowKeyboardOverlay() OVERRIDE; 35 virtual void ShowKeyboardOverlay() OVERRIDE;
35 virtual void ShowTaskManager() OVERRIDE; 36 virtual void ShowTaskManager() OVERRIDE;
36 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; 37 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE;
37 virtual void ToggleSpokenFeedback() OVERRIDE; 38 virtual void ToggleSpokenFeedback() OVERRIDE;
38 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; 39 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
39 virtual void StartPartialScreenshot( 40 virtual void StartPartialScreenshot(
40 ScreenshotDelegate* screenshot_delegate) OVERRIDE; 41 ScreenshotDelegate* screenshot_delegate) OVERRIDE;
41 virtual LauncherDelegate* CreateLauncherDelegate( 42 virtual LauncherDelegate* CreateLauncherDelegate(
42 ash::LauncherModel* model) OVERRIDE; 43 ash::LauncherModel* model) OVERRIDE;
43 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* t) OVERRIDE; 44 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* t) OVERRIDE;
44 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; 45 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE;
45 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; 46 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE;
46 47
48 void set_spoken_feedback_enabled(bool enabled) {
49 spoken_feedback_enabled_ = enabled;
50 }
51
47 private: 52 private:
48 bool locked_; 53 bool locked_;
54 bool spoken_feedback_enabled_;
49 55
50 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); 56 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate);
51 }; 57 };
52 58
53 } // namespace test 59 } // namespace test
54 } // namespace ash 60 } // namespace ash
55 61
56 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ 62 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698