Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: ash/shell_delegate.h

Issue 2821303004: cros: Suspend media sessions with display off trigger by tablet power button (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698