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

Unified Diff: chrome/browser/gtk/infobar_gtk.h

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/browser/gtk/gtk_skinny_button.cc ('k') | chrome/browser/gtk/infobar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/infobar_gtk.h
===================================================================
--- chrome/browser/gtk/infobar_gtk.h (revision 23543)
+++ chrome/browser/gtk/infobar_gtk.h (working copy)
@@ -14,6 +14,21 @@
class InfoBarContainerGtk;
class InfoBarDelegate;
+// Struct that represents a color gradient.
+struct InfoBarStyle {
+ InfoBarStyle();
+ InfoBarStyle(const double top[3],
+ const double bottom[3],
+ int height,
+ GdkColor text_color,
+ bool even);
+ double gradient_top_[3];
+ double gradient_bottom_[3];
+ int height_;
+ GdkColor text_color_;
+ bool even_;
+};
+
class InfoBar : public SlideAnimatorGtk::Delegate {
public:
explicit InfoBar(InfoBarDelegate* delegate);
@@ -60,6 +75,9 @@
// The second highest level widget of the infobar.
OwnedWidgetGtk border_bin_;
+ // The vbox that holds text and some other elements, if they want.
+ GtkWidget* vbox_;
+
// The hbox that holds infobar elements (button, text, icon, etc.).
GtkWidget* hbox_;
@@ -72,6 +90,8 @@
// The InfoBar's delegate.
InfoBarDelegate* delegate_;
+ // The colors to use when generating the background gradient of the infobar.
+ InfoBarStyle style_;
private:
static void OnCloseButton(GtkWidget* button, InfoBar* info_bar);
Property changes on: chrome/browser/gtk/infobar_gtk.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/gtk/gtk_skinny_button.cc ('k') | chrome/browser/gtk/infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698