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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/infobars/infobar_tab_helper.h" | 8 #include "chrome/browser/infobars/infobar_tab_helper.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
11 #include "chrome/browser/ui/gtk/custom_button.h" | 11 #include "chrome/browser/ui/gtk/custom_button.h" |
12 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 12 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
13 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 13 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
14 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
15 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" | 15 #include "chrome/browser/ui/gtk/infobars/infobar_container_gtk.h" |
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
19 #include "content/common/notification_service.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "ui/base/gtk/gtk_expanded_container.h" | 20 #include "ui/base/gtk/gtk_expanded_container.h" |
21 #include "ui/base/gtk/gtk_hig_constants.h" | 21 #include "ui/base/gtk/gtk_hig_constants.h" |
22 #include "ui/base/gtk/gtk_signal_registrar.h" | 22 #include "ui/base/gtk/gtk_signal_registrar.h" |
23 #include "ui/base/models/menu_model.h" | 23 #include "ui/base/models/menu_model.h" |
24 #include "ui/gfx/gtk_util.h" | 24 #include "ui/gfx/gtk_util.h" |
25 #include "ui/gfx/image/image.h" | 25 #include "ui/gfx/image/image.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Pixels between infobar elements. | 29 // Pixels between infobar elements. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 const content::NotificationSource& source, | 283 const content::NotificationSource& source, |
284 const content::NotificationDetails& details) { | 284 const content::NotificationDetails& details) { |
285 UpdateBorderColor(); | 285 UpdateBorderColor(); |
286 } | 286 } |
287 | 287 |
288 void InfoBarGtk::OnChildSizeRequest(GtkWidget* expanded, | 288 void InfoBarGtk::OnChildSizeRequest(GtkWidget* expanded, |
289 GtkWidget* child, | 289 GtkWidget* child, |
290 GtkRequisition* requisition) { | 290 GtkRequisition* requisition) { |
291 requisition->height = -1; | 291 requisition->height = -1; |
292 } | 292 } |
OLD | NEW |