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

Unified 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: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
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..9f4a8ed942d1a06fb0fffb0db8cbe8cff8b98161
--- /dev/null
+++ b/chrome/browser/ui/gtk/infobars/media_stream_infobar_gtk.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
macourteau 2012/03/01 14:06:23 2011 -> 2012
+// 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 "content/common/media/media_stream_options.h"
macourteau 2012/03/01 14:06:23 Includes should be in alphabetical order (i.e. thi
+#include "chrome/browser/media/media_stream_devices_menu_model.h"
+#include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
+#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:
+ // Builds a button with an arrow in it to emulate the menu-button style from
+ // the windows version
+ static GtkWidget* BuildDevicesMenuButton();
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698