| 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/media/media_stream_devices_menu_model.h" |
| 11 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" |
| 12 #include "content/common/media/media_stream_options.h" |
| 13 #include "ui/base/gtk/gtk_signal.h" |
| 14 |
| 15 class MediaStreamInfoBarDelegate; |
| 16 |
| 17 class MediaStreamInfoBarGtk : public InfoBarGtk { |
| 18 public: |
| 19 MediaStreamInfoBarGtk(InfoBarTabHelper* owner, |
| 20 MediaStreamInfoBarDelegate* delegate); |
| 21 virtual ~MediaStreamInfoBarGtk(); |
| 22 |
| 23 // Initializes the infobar widgets. Should be called after the object has been |
| 24 // created. |
| 25 virtual void Init(); |
| 26 |
| 27 private: |
| 28 // Builds a button with an arrow in it to emulate the menu-button style from |
| 29 // the windows version |
| 30 static GtkWidget* BuildDevicesMenuButton(); |
| 31 |
| 32 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnAllowButton); |
| 33 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDenyButton); |
| 34 CHROMEGTK_CALLBACK_0(MediaStreamInfoBarGtk, void, OnDevicesClicked); |
| 35 |
| 36 // Convenience to retrieve the MediaStreamInfobarDelegate for this infobar. |
| 37 MediaStreamInfoBarDelegate* delegate_; |
| 38 |
| 39 MediaStreamDevicesMenuModel* devices_menu_model_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarGtk); |
| 42 }; |
| 43 |
| 44 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_MEDIA_STREAM_INFOBAR_GTK_H_ |
| OLD | NEW |