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

Unified Diff: chrome/browser/chromeos/volume_bubble_view.h

Issue 2790012: Volume bubble added for ChromeOS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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: chrome/browser/chromeos/volume_bubble_view.h
===================================================================
--- chrome/browser/chromeos/volume_bubble_view.h (revision 0)
+++ chrome/browser/chromeos/volume_bubble_view.h (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_H_
+#define CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_H_
+
+#include "views/view.h"
+
+namespace views {
+class ProgressBar;
+} // namespace views
+
+class SkBitmap;
+
+namespace chromeos {
+
+class VolumeBubbleView : public views::View {
+ public:
+ VolumeBubbleView();
+
+ // Initialize the view. Set the volume progress bar to the specified position.
+ void Init(int volume_level_percent);
+
+ // Set the volume progress bar to the specified position and redraw it.
+ void Update(int volume_level_percent);
+
+ private:
+ // views::View implementation:
+ virtual void Paint(gfx::Canvas* canvas);
+ virtual void Layout();
+ virtual gfx::Size GetPreferredSize();
+
+ views::ProgressBar* progress_bar_;
+ SkBitmap* volume_icon_;
+
+ DISALLOW_COPY_AND_ASSIGN(VolumeBubbleView);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_VOLUME_BUBBLE_VIEW_H_
Property changes on: chrome/browser/chromeos/volume_bubble_view.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698