| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
| 11 #include "ui/base/gtk/gtk_signal.h" |
| 12 |
| 13 class MediaStreamDevicesMenuModel; |
| 14 class MediaStreamInfoBarDelegate; |
| 15 |
| 16 class MediaStreamInfoBarGtk : public InfoBarGtk { |
| 17 public: |
| 18 MediaStreamInfoBarGtk(InfoBarTabHelper* owner, |
| 19 MediaStreamInfoBarDelegate* delegate); |
| 20 virtual ~MediaStreamInfoBarGtk(); |
| 21 |
| 22 // Initializes the infobar widgets. Should be called after the object has been |
| 23 // created. |
| 24 virtual void Init(); |
| 25 |
| 26 private: |
| 27 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnAllowButton); |
| 28 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDenyButton); |
| 29 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDevicesClicked); |
| 30 |
| 31 // Convenience to retrieve the MediaStreamInfobarDelegate for this infobar. |
| 32 MediaStreamInfoBarDelegate* delegate_; |
| 33 |
| 34 MediaStreamDevicesMenuModel* devices_menu_model_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarGtk); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| OLD | NEW |