| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "chrome/browser/tab_contents/infobar_delegate.h" | |
| 12 #include "chrome/browser/ui/gtk/infobars/infobar_arrow_model.h" | 11 #include "chrome/browser/ui/gtk/infobars/infobar_arrow_model.h" |
| 13 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | 12 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" |
| 14 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" | 13 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" |
| 15 #include "chrome/common/notification_observer.h" | 14 #include "chrome/common/notification_observer.h" |
| 16 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 16 #include "content/browser/tab_contents/infobar_delegate.h" |
| 17 #include "third_party/skia/include/core/SkPaint.h" | 17 #include "third_party/skia/include/core/SkPaint.h" |
| 18 #include "ui/base/gtk/gtk_signal.h" | 18 #include "ui/base/gtk/gtk_signal.h" |
| 19 | 19 |
| 20 class CustomDrawButton; | 20 class CustomDrawButton; |
| 21 class GtkThemeProvider; | 21 class GtkThemeProvider; |
| 22 class InfoBarContainerGtk; | 22 class InfoBarContainerGtk; |
| 23 class InfoBarDelegate; | 23 class InfoBarDelegate; |
| 24 | 24 |
| 25 class InfoBar : public SlideAnimatorGtk::Delegate, | 25 class InfoBar : public SlideAnimatorGtk::Delegate, |
| 26 public NotificationObserver, | 26 public NotificationObserver, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 private: | 135 private: |
| 136 CHROMEGTK_CALLBACK_0(InfoBar, void, OnCloseButton); | 136 CHROMEGTK_CALLBACK_0(InfoBar, void, OnCloseButton); |
| 137 CHROMEGTK_CALLBACK_1(InfoBar, gboolean, OnBackgroundExpose, GdkEventExpose*); | 137 CHROMEGTK_CALLBACK_1(InfoBar, gboolean, OnBackgroundExpose, GdkEventExpose*); |
| 138 | 138 |
| 139 void UpdateBorderColor(); | 139 void UpdateBorderColor(); |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(InfoBar); | 141 DISALLOW_COPY_AND_ASSIGN(InfoBar); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ | 144 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_INFOBAR_GTK_H_ |
| OLD | NEW |