Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/browser/ui/ash/volume_controller_chromeos.h

Issue 2552483002: mash: Have chrome set itself as a controller interface for changing volume (Closed)
Patch Set: comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_
7
8 #include "ash/public/interfaces/volume.mojom.h"
9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/binding_set.h"
11
12 // Controls the volume when F8-10 or a multimedia key for volume is pressed.
13 class VolumeController : public ash::mojom::VolumeController {
14 public:
15 VolumeController();
16 ~VolumeController() override;
17
18 // Binds the mojom::VolumeController interface request to this object.
19 void BindRequest(ash::mojom::VolumeControllerRequest request);
20
21 // Overridden from ash::mojom::VolumeController:
22 void VolumeMute() override;
23 void VolumeDown() override;
24 void VolumeUp() override;
25
26 private:
27 mojo::BindingSet<ash::mojom::VolumeController> bindings_;
28
29 DISALLOW_COPY_AND_ASSIGN(VolumeController);
30 };
31
32 #endif // CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc ('k') | chrome/browser/ui/ash/volume_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698