| 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 23 matching lines...) Expand all Loading... |
| 34 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 34 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 35 virtual void OpenCrosh() OVERRIDE; | 35 virtual void OpenCrosh() OVERRIDE; |
| 36 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 36 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| 37 virtual void RestoreTab() OVERRIDE; | 37 virtual void RestoreTab() OVERRIDE; |
| 38 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; | 38 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; |
| 39 virtual void ShowKeyboardOverlay() OVERRIDE; | 39 virtual void ShowKeyboardOverlay() OVERRIDE; |
| 40 virtual void ShowTaskManager() OVERRIDE; | 40 virtual void ShowTaskManager() OVERRIDE; |
| 41 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 41 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 42 virtual void ToggleSpokenFeedback() OVERRIDE; | 42 virtual void ToggleSpokenFeedback() OVERRIDE; |
| 43 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 43 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 44 virtual void ToggleHighContrast() OVERRIDE; |
| 45 virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 46 virtual void SetScreenMagnifier(const ScreenMagnifierType type) OVERRIDE; |
| 47 virtual ScreenMagnifierType GetScreenMagnifierType() const OVERRIDE; |
| 48 virtual bool AlwaysShowAccessibilityMenu() const OVERRIDE; |
| 44 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 49 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 45 virtual LauncherDelegate* CreateLauncherDelegate( | 50 virtual LauncherDelegate* CreateLauncherDelegate( |
| 46 ash::LauncherModel* model) OVERRIDE; | 51 ash::LauncherModel* model) OVERRIDE; |
| 47 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 52 virtual SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
| 48 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 53 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 49 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 54 virtual CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 50 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 55 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
| 51 virtual void OpenFeedbackPage() OVERRIDE; | 56 virtual void OpenFeedbackPage() OVERRIDE; |
| 52 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; | 57 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; |
| 53 virtual void HandleMediaNextTrack() OVERRIDE; | 58 virtual void HandleMediaNextTrack() OVERRIDE; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 | 78 |
| 74 // Given |user_logged_in| will update internal state. | 79 // Given |user_logged_in| will update internal state. |
| 75 // If |user_logged_in| is false this method will also set |session_started_| | 80 // If |user_logged_in| is false this method will also set |session_started_| |
| 76 // to false. When user is not logged in it always means that session | 81 // to false. When user is not logged in it always means that session |
| 77 // hasn't been started too. | 82 // hasn't been started too. |
| 78 void SetUserLoggedIn(bool user_logged_in); | 83 void SetUserLoggedIn(bool user_logged_in); |
| 79 | 84 |
| 80 bool locked_; | 85 bool locked_; |
| 81 bool session_started_; | 86 bool session_started_; |
| 82 bool spoken_feedback_enabled_; | 87 bool spoken_feedback_enabled_; |
| 88 bool high_contrast_enabled_; |
| 89 ScreenMagnifierType screen_magnifier_type_; |
| 83 bool user_logged_in_; | 90 bool user_logged_in_; |
| 84 int num_exit_requests_; | 91 int num_exit_requests_; |
| 85 | 92 |
| 86 scoped_ptr<content::BrowserContext> current_browser_context_; | 93 scoped_ptr<content::BrowserContext> current_browser_context_; |
| 87 | 94 |
| 88 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 89 }; | 96 }; |
| 90 | 97 |
| 91 } // namespace test | 98 } // namespace test |
| 92 } // namespace ash | 99 } // namespace ash |
| 93 | 100 |
| 94 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 101 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |