| 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_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| 6 #define 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 | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" | 10 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Initializes the infobar widgets. Should be called after the object has been | 22 // Initializes the infobar widgets. Should be called after the object has been |
| 23 // created. | 23 // created. |
| 24 virtual void Init(); | 24 virtual void Init(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnAllowButton); | 27 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnAllowButton); |
| 28 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDenyButton); | 28 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDenyButton); |
| 29 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDevicesClicked); | 29 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDevicesClicked); |
| 30 | 30 |
| 31 // Convenience to retrieve the MediaStreamInfobarDelegate for this infobar. | 31 MediaStreamInfoBarDelegate* GetDelegate(); |
| 32 MediaStreamInfoBarDelegate* delegate_; | |
| 33 | 32 |
| 34 MediaStreamDevicesMenuModel* devices_menu_model_; | 33 MediaStreamDevicesMenuModel* devices_menu_model_; |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarGtk); | 35 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarGtk); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ | 38 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| OLD | NEW |