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