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

Side by Side Diff: chrome/browser/ui/webui/options/media_devices_selection_handler.h

Issue 2703393007: Show meaningful name for cameras (Closed)
Patch Set: fix trybot Created 3 years, 9 months 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" 9 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
10 #include "chrome/browser/ui/webui/options/options_ui.h" 10 #include "chrome/browser/ui/webui/options/options_ui.h"
(...skipping 29 matching lines...) Expand all
40 // Sets the default audio/video capture device for media. |args| includes the 40 // Sets the default audio/video capture device for media. |args| includes the
41 // media type (kAuudio/kVideo) and the unique id of the new default device 41 // media type (kAuudio/kVideo) and the unique id of the new default device
42 // that the user has chosen. 42 // that the user has chosen.
43 void SetDefaultCaptureDevice(const base::ListValue* args); 43 void SetDefaultCaptureDevice(const base::ListValue* args);
44 44
45 // Helpers methods to update the device menus. 45 // Helpers methods to update the device menus.
46 void UpdateDevicesMenuForType(DeviceType type); 46 void UpdateDevicesMenuForType(DeviceType type);
47 void UpdateDevicesMenu(DeviceType type, 47 void UpdateDevicesMenu(DeviceType type,
48 const content::MediaStreamDevices& devices); 48 const content::MediaStreamDevices& devices);
49 49
50 // Gets the human readable name of the device.
51 std::string GetDeviceDisplayName(
52 const content::MediaStreamDevice& device) const;
53
50 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler); 54 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler);
51 }; 55 };
52 56
53 } // namespace options 57 } // namespace options
54 58
55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_DEVICES_SELECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/DEPS ('k') | chrome/browser/ui/webui/options/media_devices_selection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698