Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1323)

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_container.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/infobars/infobar_container.h" 5 #include "chrome/browser/views/infobars/infobar_container.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/tab_contents/infobar_delegate.h" 8 #include "chrome/browser/tab_contents/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/view_ids.h" 10 #include "chrome/browser/ui/view_ids.h"
11 #include "chrome/browser/views/infobars/infobars.h" 11 #include "chrome/browser/ui/views/infobars/infobars.h"
12 #include "chrome/common/notification_service.h" 12 #include "chrome/common/notification_service.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 14
15 // InfoBarContainer, public: --------------------------------------------------- 15 // InfoBarContainer, public: ---------------------------------------------------
16 16
17 InfoBarContainer::InfoBarContainer(Delegate* delegate) 17 InfoBarContainer::InfoBarContainer(Delegate* delegate)
18 : delegate_(delegate), 18 : delegate_(delegate),
19 tab_contents_(NULL) { 19 tab_contents_(NULL) {
20 SetID(VIEW_ID_INFO_BAR_CONTAINER); 20 SetID(VIEW_ID_INFO_BAR_CONTAINER);
21 SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_INFOBAR_CONTAINER)); 21 SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_INFOBAR_CONTAINER));
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 break; 155 break;
156 } 156 }
157 } 157 }
158 } 158 }
159 159
160 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate, 160 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate,
161 InfoBarDelegate* new_delegate) { 161 InfoBarDelegate* new_delegate) {
162 RemoveInfoBar(old_delegate, false); // no animation 162 RemoveInfoBar(old_delegate, false); // no animation
163 AddInfoBar(new_delegate, false); // no animation 163 AddInfoBar(new_delegate, false); // no animation
164 } 164 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | chrome/browser/ui/views/location_bar/click_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698