| OLD | NEW |
| (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_ | |
| OLD | NEW |