| Index: chrome/browser/chromeos/brightness_bubble_view_views.h
|
| diff --git a/chrome/browser/chromeos/brightness_bubble_view_views.h b/chrome/browser/chromeos/brightness_bubble_view_views.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9dcb65fb8c3e12ec48ef7c3721ed965c5e8127e2
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/brightness_bubble_view_views.h
|
| @@ -0,0 +1,41 @@
|
| +// 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_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
|
| +#define CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
|
| +#pragma once
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "chrome/browser/chromeos/setting_level_bubble_view_views.h"
|
| +
|
| +template <typename T> struct DefaultSingletonTraits;
|
| +
|
| +namespace views{
|
| +class Widget;
|
| +}
|
| +
|
| +namespace chromeos {
|
| +
|
| +// Singleton class controlling brightness bubble.
|
| +class BrightnessBubble {
|
| + public:
|
| + static BrightnessBubble* GetInstance();
|
| + static void ShowBubble(double percent, bool enabled);
|
| + void UpdateWithoutShowingBubble(int level, bool enabled);
|
| + void HideBubble();
|
| +
|
| + private:
|
| + friend struct DefaultSingletonTraits<BrightnessBubble>;
|
| +
|
| + // Bubble widget, owned by VolumeBubble.
|
| + static views::Widget* widget_;
|
| + BrightnessBubble();
|
| + virtual ~BrightnessBubble() {}
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(BrightnessBubble);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_BRIGHTNESS_BUBBLE_VIEW_VIEWS_H_
|
|
|