summaryrefslogtreecommitdiff
path: root/chromium/ash/system/brightness/tray_brightness.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-12-11 21:33:03 +0100
committerAndras Becsi <andras.becsi@digia.com>2013-12-13 12:34:07 +0100
commitf2a33ff9cbc6d19943f1c7fbddd1f23d23975577 (patch)
tree0586a32aa390ade8557dfd6b4897f43a07449578 /chromium/ash/system/brightness/tray_brightness.h
parent5362912cdb5eea702b68ebe23702468d17c3017a (diff)
downloadqtwebengine-chromium-f2a33ff9cbc6d19943f1c7fbddd1f23d23975577.tar.gz
Update Chromium to branch 1650 (31.0.1650.63)
Change-Id: I57d8c832eaec1eb2364e0a8e7352a6dd354db99f Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'chromium/ash/system/brightness/tray_brightness.h')
-rw-r--r--chromium/ash/system/brightness/tray_brightness.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/chromium/ash/system/brightness/tray_brightness.h b/chromium/ash/system/brightness/tray_brightness.h
deleted file mode 100644
index ce62154404c..00000000000
--- a/chromium/ash/system/brightness/tray_brightness.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2012 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_SYSTEM_BRIGHTNESS_TRAY_BRIGHTNESS_H_
-#define ASH_SYSTEM_BRIGHTNESS_TRAY_BRIGHTNESS_H_
-
-#include "ash/system/brightness/brightness_observer.h"
-#include "ash/system/tray/system_tray_item.h"
-#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
-
-namespace ash {
-namespace internal {
-
-namespace tray {
-class BrightnessView;
-}
-
-class TrayBrightness : public SystemTrayItem,
- public BrightnessObserver {
- public:
- explicit TrayBrightness(SystemTray* system_tray);
- virtual ~TrayBrightness();
-
- private:
- // Sends a request to get the current screen brightness so |current_percent_|
- // can be initialized.
- void GetInitialBrightness();
-
- // Updates |current_percent_| with the initial brightness requested by
- // GetInitialBrightness(), if we haven't seen the brightness already in the
- // meantime.
- void HandleInitialBrightness(double percent);
-
- // Overridden from SystemTrayItem.
- virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
- virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
- virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
- virtual void DestroyTrayView() OVERRIDE;
- virtual void DestroyDefaultView() OVERRIDE;
- virtual void DestroyDetailedView() OVERRIDE;
- virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
- virtual bool ShouldHideArrow() const OVERRIDE;
- virtual bool ShouldShowLauncher() const OVERRIDE;
-
- // Overridden from BrightnessObserver.
- virtual void OnBrightnessChanged(double percent,
- bool user_initiated) OVERRIDE;
-
- base::WeakPtrFactory<TrayBrightness> weak_ptr_factory_;
-
- tray::BrightnessView* brightness_view_;
-
- // Was |brightness_view_| created for CreateDefaultView() rather than
- // CreateDetailedView()? Used to avoid resetting |brightness_view_|
- // inappropriately in DestroyDefaultView() or DestroyDetailedView().
- bool is_default_view_;
-
- // Brightness level in the range [0.0, 100.0] that we've heard about most
- // recently.
- double current_percent_;
-
- // Has |current_percent_| been initialized?
- bool got_current_percent_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayBrightness);
-};
-
-} // namespace internal
-} // namespace ash
-
-#endif // ASH_SYSTEM_BRIGHTNESS_TRAY_BRIGHTNESS_H_