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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.mm

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_contr oller.h" 5 #import "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_contr oller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 if (delegate_) { 389 if (delegate_) {
390 delegate_->OnSigninWithNewProfile(); 390 delegate_->OnSigninWithNewProfile();
391 delegate_ = NULL; 391 delegate_ = NULL;
392 closeDialogCallback_.Run(); 392 closeDialogCallback_.Run();
393 } 393 }
394 } 394 }
395 395
396 - (void)learnMore { 396 - (void)learnMore {
397 chrome::NavigateParams params( 397 chrome::NavigateParams params(
398 browser_, GURL(chrome::kChromeEnterpriseSignInLearnMoreURL), 398 browser_, GURL(chrome::kChromeEnterpriseSignInLearnMoreURL),
399 content::PAGE_TRANSITION_AUTO_TOPLEVEL); 399 ui::PAGE_TRANSITION_AUTO_TOPLEVEL);
400 params.disposition = NEW_POPUP; 400 params.disposition = NEW_POPUP;
401 params.window_action = chrome::NavigateParams::SHOW_WINDOW; 401 params.window_action = chrome::NavigateParams::SHOW_WINDOW;
402 chrome::Navigate(&params); 402 chrome::Navigate(&params);
403 } 403 }
404 404
405 - (BOOL)textView:(NSTextView*)textView 405 - (BOOL)textView:(NSTextView*)textView
406 clickedOnLink:(id)link 406 clickedOnLink:(id)link
407 atIndex:(NSUInteger)charIndex { 407 atIndex:(NSUInteger)charIndex {
408 if (textView == explanationField_.get()) { 408 if (textView == explanationField_.get()) {
409 [self learnMore]; 409 [self learnMore];
(...skipping 27 matching lines...) Expand all
437 437
438 - (NSButton*)createProfileButton { 438 - (NSButton*)createProfileButton {
439 return createProfileButton_.get(); 439 return createProfileButton_.get();
440 } 440 }
441 441
442 - (NSTextView*)explanationField { 442 - (NSTextView*)explanationField {
443 return explanationField_.get(); 443 return explanationField_.get();
444 } 444 }
445 445
446 @end 446 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | chrome/browser/ui/cocoa/profiles/user_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698