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

Unified Diff: chromecast/base/chromecast_switches.h

Issue 2738873002: [Chromecast] Implement new volume control API (Closed)
Patch Set: no need for ALSA volume control Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromecast/base/chromecast_switches.cc » ('j') | chromecast/chromecast.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/chromecast_switches.h
diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h
index d692803f7285ba08a655f861ab9b534fbda0aaac..27aa9b35246a247a9046dcf430e3a0dd519d4c89 100644
--- a/chromecast/base/chromecast_switches.h
+++ b/chromecast/base/chromecast_switches.h
@@ -45,6 +45,7 @@ extern const char kAlsaOutputAvailMin[];
extern const char kAlsaCheckCloseTimeout[];
extern const char kAlsaEnableUpsampling[];
extern const char kAlsaFixedOutputSampleRate[];
+extern const char kMaxOutputVolumeDba1m[];
// Memory pressure switches
extern const char kMemPressureSystemReservedKb[];
@@ -68,6 +69,17 @@ namespace chromecast {
bool GetSwitchValueBoolean(const std::string& switch_string,
const bool default_value);
+// Gets an integer value from switch |switch_name|. If the switch is not present
+// in the command line, or the value is not an integer, the |default_value| is
+// returned.
+int GetSwitchValueInt(const std::string& switch_name, const int default_value);
+
+// Gets a non-negative integer value from switch |switch_name|. If the switch is
+// not present in the command line, or the value is not a non-negative integer,
+// the |default_value| is returned.
+int GetSwitchValueNonNegativeInt(const std::string& switch_name,
+ const int default_value);
+
} // namespace chromecast
#endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_
« no previous file with comments | « no previous file | chromecast/base/chromecast_switches.cc » ('j') | chromecast/chromecast.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698