| 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_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
| 6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Invoked when the user needs to set up mobile networking. | 71 // Invoked when the user needs to set up mobile networking. |
| 72 virtual void OpenMobileSetup() = 0; | 72 virtual void OpenMobileSetup() = 0; |
| 73 | 73 |
| 74 // Get the current browser context. This will get us the current profile. | 74 // Get the current browser context. This will get us the current profile. |
| 75 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 75 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 76 | 76 |
| 77 // Invoked when the user presses a shortcut to toggle spoken feedback | 77 // Invoked when the user presses a shortcut to toggle spoken feedback |
| 78 // for accessibility. | 78 // for accessibility. |
| 79 virtual void ToggleSpokenFeedback() = 0; | 79 virtual void ToggleSpokenFeedback() = 0; |
| 80 | 80 |
| 81 // Check if High Contrast mode is enabled. |
| 82 virtual bool IsHighContrastEnabled() = 0; |
| 83 |
| 81 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 84 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 82 // the created delegate. | 85 // the created delegate. |
| 83 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 86 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| 84 | 87 |
| 85 // Invoked to start taking partial screenshot. | 88 // Invoked to start taking partial screenshot. |
| 86 virtual void StartPartialScreenshot( | 89 virtual void StartPartialScreenshot( |
| 87 ScreenshotDelegate* screenshot_delegate) = 0; | 90 ScreenshotDelegate* screenshot_delegate) = 0; |
| 88 | 91 |
| 89 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 92 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
| 90 // value. | 93 // value. |
| 91 virtual LauncherDelegate* CreateLauncherDelegate( | 94 virtual LauncherDelegate* CreateLauncherDelegate( |
| 92 ash::LauncherModel* model) = 0; | 95 ash::LauncherModel* model) = 0; |
| 93 | 96 |
| 94 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 97 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 95 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 98 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 96 | 99 |
| 97 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 100 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 98 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 101 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace ash | 104 } // namespace ash |
| 102 | 105 |
| 103 #endif // ASH_SHELL_DELEGATE_H_ | 106 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |