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