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

Side by Side Diff: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc

Issue 1407093007: Autofill: Add legal message footer to save credit card bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync/profile_signin_confirmation_dialog_views. h" 5 #include "chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views. h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 explanation_columns->AddPaddingColumn(0.0, views::kButtonHEdgeMarginNew); 225 explanation_columns->AddPaddingColumn(0.0, views::kButtonHEdgeMarginNew);
226 dialog_layout->StartRow(0, 1); 226 dialog_layout->StartRow(0, 1);
227 const int kPreferredWidth = 440; 227 const int kPreferredWidth = 440;
228 dialog_layout->AddView( 228 dialog_layout->AddView(
229 explanation_label_, 1, 1, 229 explanation_label_, 1, 1,
230 views::GridLayout::FILL, views::GridLayout::FILL, 230 views::GridLayout::FILL, views::GridLayout::FILL,
231 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth)); 231 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth));
232 } 232 }
233 233
234 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( 234 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked(
235 views::StyledLabel* label,
235 const gfx::Range& range, 236 const gfx::Range& range,
236 int event_flags) { 237 int event_flags) {
237 chrome::NavigateParams params( 238 chrome::NavigateParams params(
238 browser_, 239 browser_,
239 GURL("https://support.google.com/chromebook/answer/1331549"), 240 GURL("https://support.google.com/chromebook/answer/1331549"),
240 ui::PAGE_TRANSITION_LINK); 241 ui::PAGE_TRANSITION_LINK);
241 params.disposition = NEW_POPUP; 242 params.disposition = NEW_POPUP;
242 params.window_action = chrome::NavigateParams::SHOW_WINDOW; 243 params.window_action = chrome::NavigateParams::SHOW_WINDOW;
243 chrome::Navigate(&params); 244 chrome::Navigate(&params);
244 } 245 }
245 246
246 void ProfileSigninConfirmationDialogViews::ButtonPressed( 247 void ProfileSigninConfirmationDialogViews::ButtonPressed(
247 views::Button* sender, 248 views::Button* sender,
248 const ui::Event& event) { 249 const ui::Event& event) {
249 DCHECK(prompt_for_new_profile_); 250 DCHECK(prompt_for_new_profile_);
250 DCHECK_EQ(continue_signin_button_, sender); 251 DCHECK_EQ(continue_signin_button_, sender);
251 if (delegate_) { 252 if (delegate_) {
252 delegate_->OnContinueSignin(); 253 delegate_->OnContinueSignin();
253 delegate_ = NULL; 254 delegate_ = NULL;
254 } 255 }
255 GetWidget()->Close(); 256 GetWidget()->Close();
256 } 257 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698