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

Side by Side Diff: chrome/browser/ui/ash/volume_controller.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
« no previous file with comments | « chrome/browser/ui/ash/ash_util.cc ('k') | chrome/browser/ui/ash/volume_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_H_
7 7
8 #include "ash/public/interfaces/volume.mojom.h" 8 #include "ash/public/interfaces/volume.mojom.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/binding_set.h" 10 #include "mojo/public/cpp/bindings/binding.h"
11 11
12 // Controls the volume when F8-10 or a multimedia key for volume is pressed. 12 // Controls the volume when F8-10 or a multimedia key for volume is pressed.
13 // TODO(crbug.com/647781): Media accelerators like F8-F10 are broken in mash.
14 // Fix this when mash supports event rewriting.
13 class VolumeController : public ash::mojom::VolumeController { 15 class VolumeController : public ash::mojom::VolumeController {
14 public: 16 public:
15 VolumeController(); 17 VolumeController();
16 ~VolumeController() override; 18 ~VolumeController() override;
17 19
18 // Binds the mojom::VolumeController interface request to this object. 20 // Overridden from ash::mojom::VolumeClient:
19 void BindRequest(ash::mojom::VolumeControllerRequest request);
20
21 // Overridden from ash::mojom::VolumeController:
22 void VolumeMute() override; 21 void VolumeMute() override;
23 void VolumeDown() override; 22 void VolumeDown() override;
24 void VolumeUp() override; 23 void VolumeUp() override;
25 24
26 private: 25 private:
27 mojo::BindingSet<ash::mojom::VolumeController> bindings_; 26 mojo::Binding<ash::mojom::VolumeController> binding_;
28 27
29 DISALLOW_COPY_AND_ASSIGN(VolumeController); 28 DISALLOW_COPY_AND_ASSIGN(VolumeController);
30 }; 29 };
31 30
32 #endif // CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_CHROMEOS_H_ 31 #endif // CHROME_BROWSER_UI_ASH_VOLUME_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/ash_util.cc ('k') | chrome/browser/ui/ash/volume_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698