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/views/infobars/infobar_container.h" | 5 #include "chrome/browser/ui/views/infobars/infobar_container.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/tab_contents/infobar_delegate.h" | 8 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
10 #include "chrome/browser/ui/view_ids.h" | 10 #include "chrome/browser/ui/view_ids.h" |
11 #include "chrome/browser/ui/views/infobars/infobar_view.h" | 11 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
12 #include "chrome/common/notification_details.h" | 12 #include "chrome/common/notification_details.h" |
13 #include "chrome/common/notification_source.h" | 13 #include "chrome/common/notification_source.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 InfoBarContainer::InfoBarContainer(Delegate* delegate) | 17 InfoBarContainer::InfoBarContainer(Delegate* delegate) |
18 : delegate_(delegate), | 18 : delegate_(delegate), |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 break; | 159 break; |
160 } | 160 } |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate, | 164 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate, |
165 InfoBarDelegate* new_delegate) { | 165 InfoBarDelegate* new_delegate) { |
166 RemoveInfoBar(old_delegate, false); // no animation | 166 RemoveInfoBar(old_delegate, false); // no animation |
167 AddInfoBar(new_delegate, false); // no animation | 167 AddInfoBar(new_delegate, false); // no animation |
168 } | 168 } |
OLD | NEW |