Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h

Issue 9570012: Implement Linux Media Stream Infobar (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix tfarina's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698