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

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

Issue 2878072: Merge 53736 - Make theme change notifications auto-propagate through the view... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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) 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/chromeos/login/eula_view.h" 5 #include "chrome/browser/chromeos/login/eula_view.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 l10n_util::GetString(IDS_EULA_SYSTEM_SECURITY_SETTINGS_LINK)); 172 l10n_util::GetString(IDS_EULA_SYSTEM_SECURITY_SETTINGS_LINK));
173 continue_button_->SetLabel( 173 continue_button_->SetLabel(
174 l10n_util::GetString(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON)); 174 l10n_util::GetString(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON));
175 cancel_button_->SetLabel( 175 cancel_button_->SetLabel(
176 l10n_util::GetString(IDS_CANCEL)); 176 l10n_util::GetString(IDS_CANCEL));
177 } 177 }
178 178
179 //////////////////////////////////////////////////////////////////////////////// 179 ////////////////////////////////////////////////////////////////////////////////
180 // views::View: implementation: 180 // views::View: implementation:
181 181
182 void EulaView::LocaleChanged() { 182 void EulaView::OnLocaleChanged() {
183 UpdateLocalizedStrings(); 183 UpdateLocalizedStrings();
184 Layout(); 184 Layout();
185 } 185 }
186 186
187 //////////////////////////////////////////////////////////////////////////////// 187 ////////////////////////////////////////////////////////////////////////////////
188 // views::ButtonListener implementation: 188 // views::ButtonListener implementation:
189 189
190 void EulaView::ButtonPressed(views::Button* sender, const views::Event& event) { 190 void EulaView::ButtonPressed(views::Button* sender, const views::Event& event) {
191 if (sender == continue_button_) { 191 if (sender == continue_button_) {
192 if (usage_statistics_checkbox_) { 192 if (usage_statistics_checkbox_) {
193 GoogleUpdateSettings::SetCollectStatsConsent( 193 GoogleUpdateSettings::SetCollectStatsConsent(
194 usage_statistics_checkbox_->checked()); 194 usage_statistics_checkbox_->checked());
195 } 195 }
196 observer_->OnExit(ScreenObserver::EULA_ACCEPTED); 196 observer_->OnExit(ScreenObserver::EULA_ACCEPTED);
197 } 197 }
198 // TODO(glotov): handle cancel button. 198 // TODO(glotov): handle cancel button.
199 } 199 }
200 200
201 //////////////////////////////////////////////////////////////////////////////// 201 ////////////////////////////////////////////////////////////////////////////////
202 // views::LinkController implementation: 202 // views::LinkController implementation:
203 203
204 void EulaView::LinkActivated(views::Link* source, int event_flags) { 204 void EulaView::LinkActivated(views::Link* source, int event_flags) {
205 // TODO(glotov): handle link clicks. 205 // TODO(glotov): handle link clicks.
206 } 206 }
207 207
208 } // namespace chromeos 208 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_view.h ('k') | chrome/browser/chromeos/login/network_selection_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698