| 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 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // pref is set in local state, otherwise in user prefs. | 131 // pref is set in local state, otherwise in user prefs. |
| 132 virtual void SetTouchscreenEnabledInPrefs(bool enabled, | 132 virtual void SetTouchscreenEnabledInPrefs(bool enabled, |
| 133 bool use_local_state) = 0; | 133 bool use_local_state) = 0; |
| 134 | 134 |
| 135 // Updates the enabled/disabled status of the touchscreen from prefs. Enabled | 135 // Updates the enabled/disabled status of the touchscreen from prefs. Enabled |
| 136 // if both local state and user prefs are enabled, otherwise disabled. | 136 // if both local state and user prefs are enabled, otherwise disabled. |
| 137 virtual void UpdateTouchscreenStatusFromPrefs() = 0; | 137 virtual void UpdateTouchscreenStatusFromPrefs() = 0; |
| 138 | 138 |
| 139 // Toggles the status of touchpad between enabled and disabled. | 139 // Toggles the status of touchpad between enabled and disabled. |
| 140 virtual void ToggleTouchpad() {} | 140 virtual void ToggleTouchpad() {} |
| 141 |
| 142 // Suspends all WebContents-associated media sessions to stop managed players. |
| 143 virtual void SuspendMediaSessions() {} |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace ash | 146 } // namespace ash |
| 144 | 147 |
| 145 #endif // ASH_SHELL_DELEGATE_H_ | 148 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |