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

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

Issue 865333002: Update Touch Feedback on Volume tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | ash/system/audio/volume_view.cc » ('j') | ash/system/audio/volume_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/audio/volume_view.h
diff --git a/ash/system/audio/volume_view.h b/ash/system/audio/volume_view.h
index c77027765c9e6b8e0d6622e894bfb5ff442e2108..6db678936d7df43e01192db794fcb370c5813ce4 100644
--- a/ash/system/audio/volume_view.h
+++ b/ash/system/audio/volume_view.h
@@ -13,10 +13,11 @@
namespace views {
class View;
class ImageView;
+class Separator;
+class Slider;
}
namespace ash {
-class HoverHighlightView;
class SystemTrayItem;
namespace system {
@@ -24,9 +25,7 @@ class TrayAudioDelegate;
}
namespace tray {
-class BarSeparator;
class VolumeButton;
-class VolumeSlider;
class VolumeView : public ActionableView,
public views::ButtonListener,
@@ -49,9 +48,6 @@ class VolumeView : public ActionableView,
void HandleVolumeUp(float percent);
void HandleVolumeDown(float percent);
- // Overridden from views::View.
- void Layout() override;
-
// Overridden from views::ButtonListener.
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
@@ -64,11 +60,15 @@ class VolumeView : public ActionableView,
// Overriden from ActionableView.
bool PerformAction(const ui::Event& event) override;
+ // views::View:
+ void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
+
SystemTrayItem* owner_;
system::TrayAudioDelegate* audio_delegate_;
+ views::View* more_region_;
VolumeButton* icon_;
- VolumeSlider* slider_;
- BarSeparator* bar_;
+ views::Slider* slider_;
+ views::Separator* separator_;
views::ImageView* device_type_;
views::ImageView* more_;
bool is_default_view_;
« no previous file with comments | « no previous file | ash/system/audio/volume_view.cc » ('j') | ash/system/audio/volume_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698