blob: 4d6d135fd85857c91ead23bf20ebf741310fc9ce [file] [log] [blame]
// 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.
#include "chrome/browser/chromeos/brightness_observer.h"
#include "chrome/browser/chromeos/brightness_bubble.h"
#include "chrome/browser/chromeos/volume_bubble.h"
namespace chromeos {
void BrightnessObserver::BrightnessChanged(int level, bool user_initiated) {
if (user_initiated)
BrightnessBubble::GetInstance()->ShowBubble(level);
else
BrightnessBubble::GetInstance()->UpdateWithoutShowingBubble(level);
VolumeBubble::GetInstance()->HideBubble();
}
} // namespace chromeos