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

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

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/volume_view.h
diff --git a/ash/common/system/chromeos/audio/volume_view.h b/ash/common/system/chromeos/audio/volume_view.h
deleted file mode 100644
index 47835e504eed408bf32369e0e9d23cca4ddc654a..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/audio/volume_view.h
+++ /dev/null
@@ -1,76 +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_VOLUME_VIEW_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_VOLUME_VIEW_H_
-
-#include "base/macros.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/slider.h"
-#include "ui/views/view.h"
-
-namespace views {
-class CustomButton;
-class ImageView;
-}
-
-namespace ash {
-class SystemTrayItem;
-class TriView;
-
-namespace system {
-class TrayAudioDelegate;
-}
-
-namespace tray {
-class VolumeButton;
-
-class VolumeView : public views::View,
- public views::SliderListener,
- public views::ButtonListener {
- public:
- VolumeView(SystemTrayItem* owner,
- system::TrayAudioDelegate* audio_delegate,
- bool is_default_view);
-
- ~VolumeView() override;
-
- void Update();
-
- // Sets volume level on slider_, |percent| is ranged from [0.00] to [1.00].
- void SetVolumeLevel(float percent);
-
- private:
- // Updates device_type_ icon and more_ button.
- void UpdateDeviceTypeAndMore();
- void HandleVolumeUp(int percent);
- void HandleVolumeDown(int percent);
-
- // SliderListener:
- void SliderValueChanged(views::Slider* sender,
- float value,
- float old_value,
- views::SliderChangeReason reason) override;
-
- // views::ButtonListener:
- void ButtonPressed(views::Button* sender, const ui::Event& event) override;
-
- SystemTrayItem* owner_;
- // The only immediate child view of |this|. All other view elements are added
- // to the |tri_view_| to handle layout.
- TriView* tri_view_;
- system::TrayAudioDelegate* audio_delegate_;
- views::CustomButton* more_button_;
- VolumeButton* icon_;
- views::Slider* slider_;
- views::ImageView* device_type_;
- bool is_default_view_;
-
- DISALLOW_COPY_AND_ASSIGN(VolumeView);
-};
-
-} // namespace tray
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_VOLUME_VIEW_H_
« no previous file with comments | « ash/common/system/chromeos/audio/tray_audio_unittest.cc ('k') | ash/common/system/chromeos/audio/volume_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698