| 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 | 7 |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual void RestoreTab() OVERRIDE; | 38 virtual void RestoreTab() OVERRIDE; |
| 39 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; | 39 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; |
| 40 virtual void ShowKeyboardOverlay() OVERRIDE; | 40 virtual void ShowKeyboardOverlay() OVERRIDE; |
| 41 virtual void ShowTaskManager() OVERRIDE; | 41 virtual void ShowTaskManager() OVERRIDE; |
| 42 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 42 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 43 virtual void ToggleSpokenFeedback( | 43 virtual void ToggleSpokenFeedback( |
| 44 AccessibilityNotificationVisibility notify) OVERRIDE; | 44 AccessibilityNotificationVisibility notify) OVERRIDE; |
| 45 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 45 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 46 virtual void ToggleHighContrast() OVERRIDE; | 46 virtual void ToggleHighContrast() OVERRIDE; |
| 47 virtual bool IsHighContrastEnabled() const OVERRIDE; | 47 virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 48 virtual void SetMagnifier(MagnifierType type) OVERRIDE; | 48 virtual void SetMagnifier(bool enabled, MagnifierType type) OVERRIDE; |
| 49 virtual bool IsMagnifierEnabled() const OVERRIDE; |
| 49 virtual MagnifierType GetMagnifierType() const OVERRIDE; | 50 virtual MagnifierType GetMagnifierType() const OVERRIDE; |
| 50 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; | 51 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; |
| 51 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 52 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 52 virtual LauncherDelegate* CreateLauncherDelegate( | 53 virtual LauncherDelegate* CreateLauncherDelegate( |
| 53 ash::LauncherModel* model) OVERRIDE; | 54 ash::LauncherModel* model) OVERRIDE; |
| 54 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 55 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
| 55 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 56 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 56 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 57 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 57 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 58 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
| 58 virtual void OpenFeedbackPage() OVERRIDE; | 59 virtual void OpenFeedbackPage() OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 87 void SetUserLoggedIn(bool user_logged_in); | 88 void SetUserLoggedIn(bool user_logged_in); |
| 88 | 89 |
| 89 // Sets the internal state that indicates whether the user can lock the | 90 // Sets the internal state that indicates whether the user can lock the |
| 90 // screen. | 91 // screen. |
| 91 void SetCanLockScreen(bool can_lock_screen); | 92 void SetCanLockScreen(bool can_lock_screen); |
| 92 | 93 |
| 93 bool locked_; | 94 bool locked_; |
| 94 bool session_started_; | 95 bool session_started_; |
| 95 bool spoken_feedback_enabled_; | 96 bool spoken_feedback_enabled_; |
| 96 bool high_contrast_enabled_; | 97 bool high_contrast_enabled_; |
| 98 bool screen_magnifier_enabled_; |
| 97 MagnifierType screen_magnifier_type_; | 99 MagnifierType screen_magnifier_type_; |
| 98 bool user_logged_in_; | 100 bool user_logged_in_; |
| 99 bool can_lock_screen_; | 101 bool can_lock_screen_; |
| 100 int num_exit_requests_; | 102 int num_exit_requests_; |
| 101 | 103 |
| 102 scoped_ptr<content::BrowserContext> current_browser_context_; | 104 scoped_ptr<content::BrowserContext> current_browser_context_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 106 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace test | 109 } // namespace test |
| 108 } // namespace ash | 110 } // namespace ash |
| 109 | 111 |
| 110 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 112 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |