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

Side by Side Diff: ash/system/chromeos/audio/audio_detailed_view.h

Issue 2113113002: mash: Move chromeos audio system tray files to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_
6 #define ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_
7
8 #include "ash/common/system/tray/tray_details_view.h"
9 #include "ash/common/system/tray/view_click_listener.h"
10 #include "base/macros.h"
11 #include "chromeos/audio/audio_device.h"
12 #include "ui/gfx/font.h"
13
14 namespace views {
15 class View;
16 }
17
18 namespace ash {
19 class HoverHighlightView;
20
21 namespace tray {
22
23 class AudioDetailedView : public TrayDetailsView, public ViewClickListener {
24 public:
25 explicit AudioDetailedView(SystemTrayItem* owner);
26
27 ~AudioDetailedView() override;
28
29 void Update();
30
31 private:
32 void AddScrollListInfoItem(const base::string16& text);
33
34 HoverHighlightView* AddScrollListItem(const base::string16& text,
35 bool highlight,
36 bool checked);
37
38 void CreateHeaderEntry();
39 void CreateItems();
40
41 void UpdateScrollableList();
42 void UpdateAudioDevices();
43
44 // Overridden from ViewClickListener.
45 void OnViewClicked(views::View* sender) override;
46
47 typedef std::map<views::View*, chromeos::AudioDevice> AudioDeviceMap;
48
49 chromeos::AudioDeviceList output_devices_;
50 chromeos::AudioDeviceList input_devices_;
51 AudioDeviceMap device_map_;
52
53 DISALLOW_COPY_AND_ASSIGN(AudioDetailedView);
54 };
55
56 } // namespace tray
57 } // namespace ash
58
59 #endif // ASH_SYSTEM_CHROMEOS_AUDIO_AUDIO_DETAILED_VIEW_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/audio/tray_audio_delegate_chromeos.cc ('k') | ash/system/chromeos/audio/audio_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698