1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_
6 #define ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_
8 #include "ash/system/tray/tray_details_view.h"
9 #include "ash/system/tray/view_click_listener.h"
10 #include "ash/system/user/login_status.h"
11 #include "chromeos/audio/audio_device.h"
13 #include "ui/gfx/font.h"
20 class HoverHighlightView
;
24 class AudioDetailedView
: public TrayDetailsView
,
25 public ViewClickListener
{
27 AudioDetailedView(SystemTrayItem
* owner
, user::LoginStatus login
);
29 virtual ~AudioDetailedView();
34 void AddScrollListInfoItem(const base::string16
& text
);
36 HoverHighlightView
* AddScrollListItem(const base::string16
& text
,
37 gfx::Font::FontStyle style
,
40 void CreateHeaderEntry();
43 void UpdateScrollableList();
44 void UpdateAudioDevices();
46 // Overridden from ViewClickListener.
47 virtual void OnViewClicked(views::View
* sender
) OVERRIDE
;
49 user::LoginStatus login_
;
51 typedef std::map
<views::View
*, chromeos::AudioDevice
> AudioDeviceMap
;
53 chromeos::AudioDeviceList output_devices_
;
54 chromeos::AudioDeviceList input_devices_
;
55 AudioDeviceMap device_map_
;
57 DISALLOW_COPY_AND_ASSIGN(AudioDetailedView
);
63 #endif // ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_