| 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 #include "chrome/browser/gtk/infobar_gtk.h" | 5 #include "chrome/browser/ui/gtk/infobar_gtk.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/gtk/browser_window_gtk.h" | |
| 11 #include "chrome/browser/gtk/custom_button.h" | |
| 12 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | |
| 13 #include "chrome/browser/gtk/gtk_chrome_shrinkable_hbox.h" | |
| 14 #include "chrome/browser/gtk/gtk_theme_provider.h" | |
| 15 #include "chrome/browser/gtk/gtk_util.h" | |
| 16 #include "chrome/browser/gtk/infobar_container_gtk.h" | |
| 17 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
| 11 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
| 12 #include "chrome/browser/ui/gtk/custom_button.h" |
| 13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" |
| 15 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 16 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 17 #include "chrome/browser/ui/gtk/infobar_container_gtk.h" |
| 18 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
| 19 #include "gfx/gtk_util.h" | 19 #include "gfx/gtk_util.h" |
| 20 | 20 |
| 21 extern const int InfoBar::kInfoBarHeight = 37; | 21 extern const int InfoBar::kInfoBarHeight = 37; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Spacing after message (and before buttons). | 25 // Spacing after message (and before buttons). |
| 26 const int kEndOfLabelSpacing = 6; | 26 const int kEndOfLabelSpacing = 6; |
| 27 // Spacing between buttons. | 27 // Spacing between buttons. |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 452 |
| 453 InfoBar* AlertInfoBarDelegate::CreateInfoBar() { | 453 InfoBar* AlertInfoBarDelegate::CreateInfoBar() { |
| 454 return new AlertInfoBar(this); | 454 return new AlertInfoBar(this); |
| 455 } | 455 } |
| 456 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { | 456 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { |
| 457 return new LinkInfoBar(this); | 457 return new LinkInfoBar(this); |
| 458 } | 458 } |
| 459 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { | 459 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { |
| 460 return new ConfirmInfoBar(this); | 460 return new ConfirmInfoBar(this); |
| 461 } | 461 } |
| OLD | NEW |