| 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 24 matching lines...) Expand all Loading... |
| 35 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 35 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 36 virtual void OpenCrosh() OVERRIDE; | 36 virtual void OpenCrosh() OVERRIDE; |
| 37 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 37 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| 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() OVERRIDE; | 43 virtual void ToggleSpokenFeedback() OVERRIDE; |
| 44 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 44 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 45 virtual void ToggleHighContrast() OVERRIDE; |
| 46 virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 47 virtual void SetMagnifier(MagnifierType type) OVERRIDE; |
| 48 virtual MagnifierType GetMagnifierType() const OVERRIDE; |
| 49 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; |
| 45 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 50 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 46 virtual LauncherDelegate* CreateLauncherDelegate( | 51 virtual LauncherDelegate* CreateLauncherDelegate( |
| 47 ash::LauncherModel* model) OVERRIDE; | 52 ash::LauncherModel* model) OVERRIDE; |
| 48 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 53 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
| 49 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 54 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 50 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 55 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 51 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 56 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
| 52 virtual void OpenFeedbackPage() OVERRIDE; | 57 virtual void OpenFeedbackPage() OVERRIDE; |
| 53 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; | 58 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; |
| 54 virtual void HandleMediaNextTrack() OVERRIDE; | 59 virtual void HandleMediaNextTrack() OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 83 // hasn't been started too. | 88 // hasn't been started too. |
| 84 void SetUserLoggedIn(bool user_logged_in); | 89 void SetUserLoggedIn(bool user_logged_in); |
| 85 | 90 |
| 86 // Sets the internal state that indicates whether the user can lock the | 91 // Sets the internal state that indicates whether the user can lock the |
| 87 // screen. | 92 // screen. |
| 88 void SetCanLockScreen(bool can_lock_screen); | 93 void SetCanLockScreen(bool can_lock_screen); |
| 89 | 94 |
| 90 bool locked_; | 95 bool locked_; |
| 91 bool session_started_; | 96 bool session_started_; |
| 92 bool spoken_feedback_enabled_; | 97 bool spoken_feedback_enabled_; |
| 98 bool high_contrast_enabled_; |
| 99 MagnifierType screen_magnifier_type_; |
| 93 bool user_logged_in_; | 100 bool user_logged_in_; |
| 94 bool can_lock_screen_; | 101 bool can_lock_screen_; |
| 95 bool is_search_key_acting_as_function_key_; | 102 bool is_search_key_acting_as_function_key_; |
| 96 int num_exit_requests_; | 103 int num_exit_requests_; |
| 97 | 104 |
| 98 scoped_ptr<content::BrowserContext> current_browser_context_; | 105 scoped_ptr<content::BrowserContext> current_browser_context_; |
| 99 | 106 |
| 100 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 101 }; | 108 }; |
| 102 | 109 |
| 103 } // namespace test | 110 } // namespace test |
| 104 } // namespace ash | 111 } // namespace ash |
| 105 | 112 |
| 106 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 113 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |