Chromium Code Reviews| Index: chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h |
| diff --git a/chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7a48e1fb16a07f5426d1c86597cbd21adea7e2c8 |
| --- /dev/null |
| +++ b/chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| +#define CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| +#include "chrome/browser/media/media_stream_devices_menu_model.h" |
|
tfarina
2012/03/06 14:24:06
nit: please, forward declare this instead.
|
| +#include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
| +#include "content/common/media/media_stream_options.h" |
|
tfarina
2012/03/06 14:24:06
nit: unused, please remove.
|
| +#include "ui/base/gtk/gtk_signal.h" |
| + |
| +class MediaStreamInfoBarDelegate; |
| + |
| +class MediaStreamInfoBarGtk : public InfoBarGtk { |
| + public: |
| + MediaStreamInfoBarGtk(InfoBarTabHelper* owner, |
| + MediaStreamInfoBarDelegate* delegate); |
| + virtual ~MediaStreamInfoBarGtk(); |
| + |
| + // Initializes the infobar widgets. Should be called after the object has been |
| + // created. |
| + virtual void Init(); |
| + |
| + private: |
| + CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnAllowButton); |
| + CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDenyButton); |
| + CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDevicesClicked); |
| + |
| + // Convenience to retrieve the MediaStreamInfobarDelegate for this infobar. |
| + MediaStreamInfoBarDelegate* delegate_; |
| + |
| + MediaStreamDevicesMenuModel* devices_menu_model_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarGtk); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |