Index: chrome/browser/media/media_stream_devices_menu_model.h |
diff --git a/chrome/browser/media/media_stream_devices_menu_model.h b/chrome/browser/media/media_stream_devices_menu_model.h |
index 866234762ad63d7a7610e9ddb6a9d8ccd69fdcd8..21f17871f2708981de07cdcd281ccdd3bcbe4ecc 100644 |
--- a/chrome/browser/media/media_stream_devices_menu_model.h |
+++ b/chrome/browser/media/media_stream_devices_menu_model.h |
@@ -30,6 +30,8 @@ class MediaStreamDevicesMenuModel : public ui::SimpleMenuModel, |
content::MediaStreamDeviceType type, |
std::string* device_id) const; |
+ bool IsAlwaysAllowChecked() const { return always_allow_; } |
Ivan Korotkov
2012/06/14 17:14:12
If this method is non-virtual, it should be named
no longer working on chromium
2012/06/15 16:52:07
Done.
|
+ |
// ui::SimpleMenuModel::Delegate implementation: |
virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
@@ -44,6 +46,9 @@ class MediaStreamDevicesMenuModel : public ui::SimpleMenuModel, |
// Internal method to add the |devices| to the current menu. |
void AddDevices(const content::MediaStreamDevices& devices); |
+ // Internal method to add "always allow" option to the current menu. |
+ void AddAlwaysAllowOption(bool audio, bool video); |
+ |
// Map of command IDs to devices. |
CommandMap commands_; |
@@ -52,6 +57,8 @@ class MediaStreamDevicesMenuModel : public ui::SimpleMenuModel, |
int selected_command_id_audio_; |
int selected_command_id_video_; |
+ bool always_allow_; |
+ |
DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesMenuModel); |
}; |