forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove return value for VolumeControlDelegate::HandleVolumeMute() and…
… co. In order to split AcceleratorController::PerformAction() into AcceleratorController::CanPerformAction() and AcceleratorController::PerformAction(), it is necessary to either: - Know whether the VolumeControlDelegate should process VKEY_VOLUME_MUTE prior to calling VolumeControlDelegate::HandleVolumeMute(). This would require introducing VolumeControlDelegate::CanHandleVolumeMute(). OR - Have VolumeControlDelegate always process VKEY_VOLUME_MUTE. In the case of VolumeControlDelegate, KeyboardBrightnessControlDelegate and BrightnessControlDelegate the non-test implementations always handle the key events. This CL: - Removes the return values of the implementations of VolumeControlDelegate, KeyboardBrightnessControlDelegate and BrightnessControlDelegate given that the non-test implementations always return true. - Makes the volume and brightness accelerators CrOS only. This allows the volume and brightness keys to be always handled. (VolumeControlDelegate is the only consume of VKEY_VOLUME_MUTE so it is ok for it to always handle the event) BUG=404473 TEST=None Review URL: https://codereview.chromium.org/734893002 Cr-Commit-Position: refs/heads/master@{#305229}
- Loading branch information
Showing
16 changed files
with
151 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.