| 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/extension_infobar_gtk.h" | 5 #include "chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_host.h" | 7 #include "chrome/browser/extensions/extension_host.h" |
| 8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
| 9 #include "chrome/common/extensions/extension_icon_set.h" | 9 #include "chrome/common/extensions/extension_icon_set.h" |
| 10 #include "chrome/common/extensions/extension_resource.h" | 10 #include "chrome/common/extensions/extension_resource.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ->SetSize(new_size); | 81 ->SetSize(new_size); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void ExtensionInfoBarGtk::OnExtensionPreferredSizeChanged( | 84 void ExtensionInfoBarGtk::OnExtensionPreferredSizeChanged( |
| 85 ExtensionViewGtk* view, | 85 ExtensionViewGtk* view, |
| 86 const gfx::Size& new_size) { | 86 const gfx::Size& new_size) { |
| 87 // TODO(rafaelw) - Size the InfobarGtk vertically based on the preferred size | 87 // TODO(rafaelw) - Size the InfobarGtk vertically based on the preferred size |
| 88 // of the content. | 88 // of the content. |
| 89 } | 89 } |
| 90 | 90 |
| 91 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar() { | 91 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(TabContents* owner) { |
| 92 return new ExtensionInfoBarGtk(this); | 92 return new ExtensionInfoBarGtk(this); |
| 93 } | 93 } |
| OLD | NEW |