| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INFOBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void AddLabelWithInlineLink(const string16& display_text, | 69 void AddLabelWithInlineLink(const string16& display_text, |
| 70 const string16& link_text, | 70 const string16& link_text, |
| 71 size_t link_offset, | 71 size_t link_offset, |
| 72 GCallback callback); | 72 GCallback callback); |
| 73 | 73 |
| 74 // InfoBar: | 74 // InfoBar: |
| 75 virtual void PlatformSpecificShow(bool animate) OVERRIDE; | 75 virtual void PlatformSpecificShow(bool animate) OVERRIDE; |
| 76 virtual void PlatformSpecificOnHeightsRecalculated() OVERRIDE; | 76 virtual void PlatformSpecificOnHeightsRecalculated() OVERRIDE; |
| 77 | 77 |
| 78 // NotificationObserver: | 78 // NotificationObserver: |
| 79 virtual void Observe(NotificationType type, | 79 virtual void Observe(int type, |
| 80 const NotificationSource& source, | 80 const NotificationSource& source, |
| 81 const NotificationDetails& details) OVERRIDE; | 81 const NotificationDetails& details) OVERRIDE; |
| 82 | 82 |
| 83 // The second highest widget in the hierarchy (after the |widget_|). | 83 // The second highest widget in the hierarchy (after the |widget_|). |
| 84 GtkWidget* bg_box_; | 84 GtkWidget* bg_box_; |
| 85 | 85 |
| 86 // The hbox that holds infobar elements (button, text, icon, etc.). | 86 // The hbox that holds infobar elements (button, text, icon, etc.). |
| 87 GtkWidget* hbox_; | 87 GtkWidget* hbox_; |
| 88 | 88 |
| 89 // The x that closes the bar. | 89 // The x that closes the bar. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 105 void UpdateBorderColor(); | 105 void UpdateBorderColor(); |
| 106 | 106 |
| 107 // A GtkExpandedContainer that contains |bg_box_| so we can varry the height | 107 // A GtkExpandedContainer that contains |bg_box_| so we can varry the height |
| 108 // of the infobar. | 108 // of the infobar. |
| 109 OwnedWidgetGtk widget_; | 109 OwnedWidgetGtk widget_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(InfoBarGtk); | 111 DISALLOW_COPY_AND_ASSIGN(InfoBarGtk); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ | 114 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ |
| OLD | NEW |