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

Unified Diff: chromeos/audio/cras_audio_handler.h

Issue 2190773002: Fix Volume slider is captured in screenshot done in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable hiding animation; restoring volume does not notify UI Created 4 years, 5 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
Index: chromeos/audio/cras_audio_handler.h
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h
index c9110718e4a332a7bc0dde2b5a02d446857a8e2f..fc412ba1b7ae7056573a335ae9697096bc83c6ca 100644
--- a/chromeos/audio/cras_audio_handler.h
+++ b/chromeos/audio/cras_audio_handler.h
@@ -159,6 +159,10 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// range is from 0-100%.
virtual void SetOutputVolumePercent(int volume_percent);
+ // Sets all active output devices' volume level to |volume_percent|, whose
+ // range is from 0-100% from internal sources, not users.
+ virtual void SetOutputVolumePercentInternally(int volume_percent);
jennyz 2016/07/28 21:02:17 Sorry, the name is a little confusing here(my faul
Qiang(Joe) Xu 2016/07/28 23:15:57 Done.
+
// Sets all active input devices' gain level to |gain_percent|, whose range is
// from 0-100%.
virtual void SetInputGainPercent(int gain_percent);
@@ -437,6 +441,9 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
uint64_t init_node_id_;
int init_volume_count_ = 0;
+ // True if volume change event is not coming from user-initiated operations.
+ bool volume_internally_changed_ = false;
+
base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);

Powered by Google App Engine
This is Rietveld 408576698