1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/chromeos/brightness_observer.h"
6
7#include "chrome/browser/chromeos/brightness_bubble.h"
8#include "chrome/browser/chromeos/volume_bubble.h"
9
10namespace chromeos {
11
12void BrightnessObserver::BrightnessChanged(int level, bool user_initiated) {
13  if (user_initiated)
14    BrightnessBubble::GetInstance()->ShowBubble(level);
15  else
16    BrightnessBubble::GetInstance()->UpdateWithoutShowingBubble(level);
17
18  VolumeBubble::GetInstance()->HideBubble();
19}
20
21}  // namespace chromeos
22