|
Refactor the TrayAudio code so that it can be used by other platforms.
The motivation here is to introduce the volume slider tray UI into
Windows Ash.
This change does not actually add tray audio UI to other platforms,
only moves some non-chromeos specific things out of the chromeos
platform folders, so that we can hook in the native Audio APIs
of other platforms to the tray UI.
At a high level, this change does the following:
1) Move tray_audio out of chromeos/ so that other platforms can
use the UI that it provides.
2) Decouples TrayAudio from CrasAudioHandler by introducing a
new delegate, in a similar vein to what is done with all the other
handlers (e.g. the BluetoothHandler)
3) Move the additional views (VolumeView, etc) to their own files
so they can be used by other platforms as well.
TEST=
On CrOS physical device, verified that:
1) Keyboard volume buttons function appropriately and display the
volume view
2) AudioDetailView still is accessible at the correct times
3) Adjusting the volume (via the keyboard shortcuts or via the
slider) correctly change the output volume.
4) UI still behaves correctly (e.g. icons update as the volume
changes, mute button works, etc).
BUG= 227247
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251959
Total comments: 28
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1241 lines, -752 lines) |
Patch |
 |
M |
ash/ash.gyp
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/ash_switches.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/ash_switches.cc
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
A |
ash/system/audio/audio_observer.h
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ash/system/audio/tray_audio.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+25 lines, -20 lines |
0 comments
|
Download
|
 |
A |
ash/system/audio/tray_audio.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+143 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/audio/tray_audio_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/audio/volume_view.h
|
View
|
1
2
3
4
5
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/audio/volume_view.cc
|
View
|
1
2
3
4
|
1 chunk |
+332 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/audio_detailed_view.h
|
View
|
1
2
3
4
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/audio_detailed_view.cc
|
View
|
1
2
3
4
|
1 chunk |
+177 lines, -0 lines |
0 comments
|
Download
|
 |
D |
ash/system/chromeos/audio/tray_audio.h
|
View
|
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
 |
D |
ash/system/chromeos/audio/tray_audio.cc
|
View
|
|
1 chunk |
+0 lines, -663 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/tray_audio_chromeos.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/tray_audio_chromeos.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/tray_audio_delegate_chromeos.h
|
View
|
1
2
3
4
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
|
View
|
1
2
3
4
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_notifier.h
|
View
|
|
4 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_notifier.cc
|
View
|
|
2 chunks |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.h
|
View
|
1
2
3
4
5
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+34 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/audio/cras_audio_handler.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/audio/cras_audio_handler.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|