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

Side by Side Diff: chrome/browser/chromeos/login/web_page_view.cc

Issue 8113031: Change std::wstring to string16 for views::Label and views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 2 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
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/chromeos/login/web_page_view.h" 5 #include "chrome/browser/chromeos/login/web_page_view.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 views::Background::CreateBackgroundPainter(true, painter)); 110 views::Background::CreateBackgroundPainter(true, painter));
111 set_border(CreateWizardBorder(&BorderDefinition::kScreenBorder)); 111 set_border(CreateWizardBorder(&BorderDefinition::kScreenBorder));
112 dom_view()->SetVisible(false); 112 dom_view()->SetVisible(false);
113 AddChildView(dom_view()); 113 AddChildView(dom_view());
114 114
115 throbber_ = CreateDefaultThrobber(); 115 throbber_ = CreateDefaultThrobber();
116 AddChildView(throbber_); 116 AddChildView(throbber_);
117 117
118 connecting_label_ = new views::Label(); 118 connecting_label_ = new views::Label();
119 connecting_label_->SetText( 119 connecting_label_->SetText(
120 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOAD_STATE_CONNECTING))); 120 l10n_util::GetStringUTF16(IDS_LOAD_STATE_CONNECTING));
121 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 121 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
122 connecting_label_->SetFont(rb.GetFont(ResourceBundle::MediumFont)); 122 connecting_label_->SetFont(rb.GetFont(ResourceBundle::MediumFont));
123 connecting_label_->SetVisible(false); 123 connecting_label_->SetVisible(false);
124 AddChildView(connecting_label_ ); 124 AddChildView(connecting_label_);
125 125
126 start_timer_.Start(FROM_HERE, 126 start_timer_.Start(FROM_HERE,
127 TimeDelta::FromMilliseconds(kStartDelayMs), 127 TimeDelta::FromMilliseconds(kStartDelayMs),
128 this, 128 this,
129 &WebPageView::ShowWaitingControls); 129 &WebPageView::ShowWaitingControls);
130 } 130 }
131 131
132 void WebPageView::InitDOM(Profile* profile, 132 void WebPageView::InitDOM(Profile* profile,
133 SiteInstance* site_instance) { 133 SiteInstance* site_instance) {
134 dom_view()->Init(profile, site_instance); 134 dom_view()->Init(profile, site_instance);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 throbber_->GetPreferredSize().width(), 184 throbber_->GetPreferredSize().width(),
185 throbber_->GetPreferredSize().height()); 185 throbber_->GetPreferredSize().height());
186 connecting_label_->SetBounds( 186 connecting_label_->SetBounds(
187 width() / 2 - connecting_label_->GetPreferredSize().width() / 2, 187 width() / 2 - connecting_label_->GetPreferredSize().width() / 2,
188 y + throbber_->GetPreferredSize().height() + kSpacing, 188 y + throbber_->GetPreferredSize().height() + kSpacing,
189 connecting_label_->GetPreferredSize().width(), 189 connecting_label_->GetPreferredSize().width(),
190 connecting_label_->GetPreferredSize().height()); 190 connecting_label_->GetPreferredSize().height());
191 } 191 }
192 192
193 } // namespace chromeos 193 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/username_view.cc ('k') | chrome/browser/chromeos/options/vpn_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698