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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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
Index: ash/common/system/chromeos/audio/tray_audio.h
diff --git a/ash/common/system/chromeos/audio/tray_audio.h b/ash/common/system/chromeos/audio/tray_audio.h
deleted file mode 100644
index d58764476eb9d9989e509d51f1623704187d6e2a..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/audio/tray_audio.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "ash/common/system/tray/tray_image_item.h"
-#include "base/macros.h"
-#include "chromeos/audio/cras_audio_handler.h"
-#include "chromeos/dbus/power_manager_client.h"
-#include "ui/display/display_observer.h"
-
-namespace ash {
-
-namespace system {
-class TrayAudioDelegate;
-}
-
-namespace tray {
-class AudioDetailedView;
-class VolumeView;
-}
-
-// The system tray item for audio input and output.
-class ASH_EXPORT TrayAudio : public TrayImageItem,
- public chromeos::CrasAudioHandler::AudioObserver,
- public display::DisplayObserver,
- public chromeos::PowerManagerClient::Observer {
- public:
- explicit TrayAudio(SystemTray* system_tray);
- ~TrayAudio() override;
-
- // Temporarily shows the pop-up volume slider on all displays. Used by ARC
- // when an Android app changes the system volume.
- static void ShowPopUpVolumeView();
-
- tray::VolumeView* volume_view_for_testing() { return volume_view_; }
- bool pop_up_volume_view_for_testing() { return pop_up_volume_view_; }
-
- private:
- // Overridden from display::DisplayObserver.
- void OnDisplayAdded(const display::Display& new_display) override;
- void OnDisplayRemoved(const display::Display& old_display) override;
- void OnDisplayMetricsChanged(const display::Display& display,
- uint32_t changed_metrics) override;
-
- // Overridden from TrayImageItem.
- bool GetInitialVisibility() override;
-
- // Overridden from SystemTrayItem.
- views::View* CreateDefaultView(LoginStatus status) override;
- views::View* CreateDetailedView(LoginStatus status) override;
- void DestroyDefaultView() override;
- void DestroyDetailedView() override;
- bool ShouldShowShelf() const override;
-
- // Overridden from CrasAudioHandler::AudioObserver.
- void OnOutputNodeVolumeChanged(uint64_t node_id, int volume) override;
- void OnOutputMuteChanged(bool mute_on, bool system_adjust) override;
- void OnAudioNodesChanged() override;
- void OnActiveOutputNodeChanged() override;
- void OnActiveInputNodeChanged() override;
-
- // Overridden from chromeos::PowerManagerClient::Observer.
- void SuspendDone(const base::TimeDelta& sleep_duration) override;
-
- // Swaps the left and right channels on yoga devices based on orientation.
- void ChangeInternalSpeakerChannelMode();
-
- // Updates the UI views.
- void Update();
-
- // TODO(jamescook): Remove this delegate and inline all the code.
- std::unique_ptr<system::TrayAudioDelegate> audio_delegate_;
- tray::VolumeView* volume_view_;
-
- // True if VolumeView should be created for accelerator pop up;
- // Otherwise, it should be created for detailed view in ash tray bubble.
- bool pop_up_volume_view_;
-
- tray::AudioDetailedView* audio_detail_view_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayAudio);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_H_
« no previous file with comments | « ash/common/system/chromeos/audio/audio_detailed_view.cc ('k') | ash/common/system/chromeos/audio/tray_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698