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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 views::GridLayout::FILL, views::GridLayout::FILL, 245 views::GridLayout::FILL, views::GridLayout::FILL,
246 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth)); 246 kPreferredWidth, explanation_label_->GetHeightForWidth(kPreferredWidth));
247 } 247 }
248 248
249 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked( 249 void ProfileSigninConfirmationDialogViews::StyledLabelLinkClicked(
250 const gfx::Range& range, 250 const gfx::Range& range,
251 int event_flags) { 251 int event_flags) {
252 chrome::NavigateParams params( 252 chrome::NavigateParams params(
253 browser_, 253 browser_,
254 GURL("http://support.google.com/chromeos/bin/answer.py?answer=1331549"), 254 GURL("http://support.google.com/chromeos/bin/answer.py?answer=1331549"),
255 content::PAGE_TRANSITION_LINK); 255 ui::PAGE_TRANSITION_LINK);
256 params.disposition = NEW_POPUP; 256 params.disposition = NEW_POPUP;
257 params.window_action = chrome::NavigateParams::SHOW_WINDOW; 257 params.window_action = chrome::NavigateParams::SHOW_WINDOW;
258 chrome::Navigate(&params); 258 chrome::Navigate(&params);
259 } 259 }
260 260
261 void ProfileSigninConfirmationDialogViews::ButtonPressed( 261 void ProfileSigninConfirmationDialogViews::ButtonPressed(
262 views::Button* sender, 262 views::Button* sender,
263 const ui::Event& event) { 263 const ui::Event& event) {
264 DCHECK(prompt_for_new_profile_); 264 DCHECK(prompt_for_new_profile_);
265 DCHECK_EQ(continue_signin_button_, sender); 265 DCHECK_EQ(continue_signin_button_, sender);
266 if (delegate_) { 266 if (delegate_) {
267 delegate_->OnContinueSignin(); 267 delegate_->OnContinueSignin();
268 delegate_ = NULL; 268 delegate_ = NULL;
269 } 269 }
270 GetWidget()->Close(); 270 GetWidget()->Close();
271 } 271 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698