OLD | NEW |
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_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ |
7 | 7 |
8 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 8 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
9 #include "chrome/browser/ui/webui/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 #include "grit/generated_resources.h" | |
12 | 11 |
13 namespace options { | 12 namespace options { |
14 | 13 |
15 // Handler for media devices selection in content settings. | 14 // Handler for media devices selection in content settings. |
16 class MediaDevicesSelectionHandler | 15 class MediaDevicesSelectionHandler |
17 : public MediaCaptureDevicesDispatcher::Observer, | 16 : public MediaCaptureDevicesDispatcher::Observer, |
18 public OptionsPageUIHandler { | 17 public OptionsPageUIHandler { |
19 public: | 18 public: |
20 MediaDevicesSelectionHandler(); | 19 MediaDevicesSelectionHandler(); |
21 virtual ~MediaDevicesSelectionHandler(); | 20 virtual ~MediaDevicesSelectionHandler(); |
(...skipping 24 matching lines...) Expand all Loading... |
46 void UpdateDevicesMenuForType(DeviceType type); | 45 void UpdateDevicesMenuForType(DeviceType type); |
47 void UpdateDevicesMenu(DeviceType type, | 46 void UpdateDevicesMenu(DeviceType type, |
48 const content::MediaStreamDevices& devices); | 47 const content::MediaStreamDevices& devices); |
49 | 48 |
50 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler); | 49 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler); |
51 }; | 50 }; |
52 | 51 |
53 } // namespace options | 52 } // namespace options |
54 | 53 |
55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ | 54 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ |
OLD | NEW |