Chromium Code Reviews| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 // Shows the keyboard shortcut overlay. | 81 // Shows the keyboard shortcut overlay. |
| 82 virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0; | 82 virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0; |
| 83 | 83 |
| 84 // Get the current browser context. This will get us the current profile. | 84 // Get the current browser context. This will get us the current profile. |
| 85 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 85 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 86 | 86 |
| 87 // Invoked when the user presses a shortcut to toggle spoken feedback | 87 // Invoked when the user presses a shortcut to toggle spoken feedback |
| 88 // for accessibility. | 88 // for accessibility. |
| 89 virtual void ToggleSpokenFeedback() = 0; | 89 virtual void ToggleSpokenFeedback() = 0; |
| 90 | 90 |
| 91 // Check if High Contrast mode is enabled. | |
| 92 virtual bool IsHighContrastEnabled() = 0; | |
|
sky
2012/05/16 21:07:48
Do we really need this? Can't we set it when chrom
Zachary Kuznia
2012/05/17 08:25:25
Removed.
| |
| 93 | |
| 91 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 94 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 92 // the created delegate. | 95 // the created delegate. |
| 93 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 96 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| 94 | 97 |
| 95 // Invoked to start taking partial screenshot. | 98 // Invoked to start taking partial screenshot. |
| 96 virtual void StartPartialScreenshot( | 99 virtual void StartPartialScreenshot( |
| 97 ScreenshotDelegate* screenshot_delegate) = 0; | 100 ScreenshotDelegate* screenshot_delegate) = 0; |
| 98 | 101 |
| 99 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 102 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
| 100 // value. | 103 // value. |
| 101 virtual LauncherDelegate* CreateLauncherDelegate( | 104 virtual LauncherDelegate* CreateLauncherDelegate( |
| 102 ash::LauncherModel* model) = 0; | 105 ash::LauncherModel* model) = 0; |
| 103 | 106 |
| 104 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 107 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 105 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 108 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 106 | 109 |
| 107 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 110 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 108 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 111 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 } // namespace ash | 114 } // namespace ash |
| 112 | 115 |
| 113 #endif // ASH_SHELL_DELEGATE_H_ | 116 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |