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

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: feedback & remove resuming Created 3 years, 7 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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller.cc » ('j') | ash/system/power/tablet_power_button_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698