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/ui/gtk/infobars/infobar_gtk.h" | 5 #include "chrome/browser/ui/gtk/infobars/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/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
11 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 11 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
12 #include "chrome/browser/ui/gtk/custom_button.h" | 12 #include "chrome/browser/ui/gtk/custom_button.h" |
13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
14 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" | 14 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" |
15 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" | 15 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
16 #include "chrome/browser/ui/gtk/gtk_util.h" | 16 #include "chrome/browser/ui/gtk/gtk_util.h" |
17 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" | 17 #include "chrome/browser/ui/gtk/infobars/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 "ui/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. |
28 const int kButtonButtonSpacing = 3; | 28 const int kButtonButtonSpacing = 3; |
29 | 29 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 } | 405 } |
406 | 406 |
407 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { | 407 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { |
408 return new LinkInfoBar(this); | 408 return new LinkInfoBar(this); |
409 } | 409 } |
410 | 410 |
411 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { | 411 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { |
412 return new ConfirmInfoBar(this); | 412 return new ConfirmInfoBar(this); |
413 } | 413 } |
OLD | NEW |