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

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

Issue 6192007: Remove wstring from views. Part 3: Switch accessibility strings to string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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
« no previous file with comments | « chrome/browser/ui/views/importer_view.cc ('k') | chrome/browser/ui/views/infobars/infobars.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/tab_contents/infobar_delegate.h" 9 #include "chrome/browser/tab_contents/infobar_delegate.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
11 #include "chrome/browser/ui/view_ids.h" 11 #include "chrome/browser/ui/view_ids.h"
12 #include "chrome/browser/ui/views/infobars/infobars.h" 12 #include "chrome/browser/ui/views/infobars/infobars.h"
13 #include "chrome/common/notification_details.h" 13 #include "chrome/common/notification_details.h"
14 #include "chrome/common/notification_source.h" 14 #include "chrome/common/notification_source.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 16
17 // InfoBarContainer, public: --------------------------------------------------- 17 // InfoBarContainer, public: ---------------------------------------------------
18 18
19 InfoBarContainer::InfoBarContainer(Delegate* delegate) 19 InfoBarContainer::InfoBarContainer(Delegate* delegate)
20 : delegate_(delegate), 20 : delegate_(delegate),
21 tab_contents_(NULL) { 21 tab_contents_(NULL) {
22 SetID(VIEW_ID_INFO_BAR_CONTAINER); 22 SetID(VIEW_ID_INFO_BAR_CONTAINER);
23 SetAccessibleName( 23 SetAccessibleName(
24 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_CONTAINER))); 24 l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_CONTAINER));
25 } 25 }
26 26
27 InfoBarContainer::~InfoBarContainer() { 27 InfoBarContainer::~InfoBarContainer() {
28 // We NULL this pointer before resetting the TabContents to prevent view 28 // We NULL this pointer before resetting the TabContents to prevent view
29 // hierarchy modifications from attempting to resize the delegate which 29 // hierarchy modifications from attempting to resize the delegate which
30 // could be in the process of shutting down. 30 // could be in the process of shutting down.
31 delegate_ = NULL; 31 delegate_ = NULL;
32 ChangeTabContents(NULL); 32 ChangeTabContents(NULL);
33 } 33 }
34 34
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 break; 158 break;
159 } 159 }
160 } 160 }
161 } 161 }
162 162
163 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate, 163 void InfoBarContainer::ReplaceInfoBar(InfoBarDelegate* old_delegate,
164 InfoBarDelegate* new_delegate) { 164 InfoBarDelegate* new_delegate) {
165 RemoveInfoBar(old_delegate, false); // no animation 165 RemoveInfoBar(old_delegate, false); // no animation
166 AddInfoBar(new_delegate, false); // no animation 166 AddInfoBar(new_delegate, false); // no animation
167 } 167 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/importer_view.cc ('k') | chrome/browser/ui/views/infobars/infobars.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698