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

Unified Diff: ash/system/audio/tray_audio.h

Issue 620673002: Flip the left/right speaker when the device is in yoga mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change internal speaker channel mode OnDisplayAdded. Created 6 years, 3 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 | ash/system/audio/tray_audio.cc » ('j') | ash/system/audio/tray_audio.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/audio/tray_audio.h
diff --git a/ash/system/audio/tray_audio.h b/ash/system/audio/tray_audio.h
index 9d76bb92db85bff88a946a3cb3780e100c83743d..1d0d5e1cc435341239d2a2209333e1ff17c2ac5a 100644
--- a/ash/system/audio/tray_audio.h
+++ b/ash/system/audio/tray_audio.h
@@ -8,6 +8,7 @@
#include "ash/system/audio/audio_observer.h"
#include "ash/system/tray/tray_image_item.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/display_observer.h"
namespace ash {
@@ -20,7 +21,8 @@ class VolumeView;
}
class TrayAudio : public TrayImageItem,
- public AudioObserver {
+ public AudioObserver,
+ public gfx::DisplayObserver {
public:
TrayAudio(SystemTray* system_tray,
scoped_ptr<system::TrayAudioDelegate> audio_delegate);
@@ -57,6 +59,14 @@ class TrayAudio : public TrayImageItem,
virtual void OnActiveOutputNodeChanged() OVERRIDE;
virtual void OnActiveInputNodeChanged() OVERRIDE;
+ // Overridden from gfx::DisplayObserver.
+ virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
+ virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
+ virtual void OnDisplayMetricsChanged(const gfx::Display& display,
+ uint32_t changed_metrics) OVERRIDE;
+
+ void ChangeInternalSpeakerChannelMode();
+
DISALLOW_COPY_AND_ASSIGN(TrayAudio);
};
« no previous file with comments | « no previous file | ash/system/audio/tray_audio.cc » ('j') | ash/system/audio/tray_audio.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698