Chromium Code Reviews

Unified Diff: chrome/browser/chromeos/system_key_event_listener.cc

Issue 5620004: chromeos: Show onscreen bubble when brightness changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos
Patch Set: update comment Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/chromeos/system_key_event_listener.cc
diff --git a/chrome/browser/chromeos/system_key_event_listener.cc b/chrome/browser/chromeos/system_key_event_listener.cc
index 0ac003a9c8c057654844acebe560984264707ad6..748152c47895945122fd9b73fc9dafca041a0a22 100644
--- a/chrome/browser/chromeos/system_key_event_listener.cc
+++ b/chrome/browser/chromeos/system_key_event_listener.cc
@@ -8,6 +8,7 @@
#include <X11/XF86keysym.h>
#include "chrome/browser/chromeos/audio_handler.h"
+#include "chrome/browser/chromeos/brightness_bubble.h"
#include "chrome/browser/chromeos/volume_bubble.h"
#include "cros/chromeos_wm_ipc_enums.h"
@@ -131,6 +132,7 @@ void SystemKeyEventListener::OnVolumeMute() {
// http://crosbug.com/3751
audio_handler_->SetMute(true);
VolumeBubble::instance()->ShowBubble(0);
+ BrightnessBubble::instance()->HideBubble();
}
void SystemKeyEventListener::OnVolumeDown() {
@@ -141,6 +143,7 @@ void SystemKeyEventListener::OnVolumeDown() {
VolumeBubble::instance()->ShowBubble(
audio_handler_->GetVolumePercent());
}
+ BrightnessBubble::instance()->HideBubble();
}
void SystemKeyEventListener::OnVolumeUp() {
@@ -150,6 +153,7 @@ void SystemKeyEventListener::OnVolumeUp() {
audio_handler_->AdjustVolumeByPercent(kStepPercentage);
VolumeBubble::instance()->ShowBubble(
audio_handler_->GetVolumePercent());
+ BrightnessBubble::instance()->HideBubble();
}
} // namespace chromeos

Powered by Google App Engine