blob: 201ab459a39e6fc7e9680375e0f2ce0e933defc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2011 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.
#include "chrome/browser/chromeos/power/brightness_observer.h"
#include "chrome/browser/chromeos/ui/brightness_bubble.h"
#include "chrome/browser/chromeos/ui/volume_bubble.h"
namespace chromeos {
void BrightnessObserver::BrightnessChanged(int level, bool user_initiated) {
if (user_initiated)
BrightnessBubble::GetInstance()->ShowBubble(level, true);
else
BrightnessBubble::GetInstance()->UpdateWithoutShowingBubble(level, true);
VolumeBubble::GetInstance()->HideBubble();
}
} // namespace chromeos
|