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

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

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 delegate_->OnSigninWithNewProfile(); 402 delegate_->OnSigninWithNewProfile();
403 delegate_ = NULL; 403 delegate_ = NULL;
404 closeDialogCallback_.Run(); 404 closeDialogCallback_.Run();
405 } 405 }
406 } 406 }
407 407
408 - (void)learnMore { 408 - (void)learnMore {
409 chrome::NavigateParams params( 409 chrome::NavigateParams params(
410 browser_, GURL(chrome::kChromeEnterpriseSignInLearnMoreURL), 410 browser_, GURL(chrome::kChromeEnterpriseSignInLearnMoreURL),
411 ui::PAGE_TRANSITION_AUTO_TOPLEVEL); 411 ui::PAGE_TRANSITION_AUTO_TOPLEVEL);
412 params.disposition = NEW_POPUP; 412 params.disposition = WindowOpenDisposition::NEW_POPUP;
413 params.window_action = chrome::NavigateParams::SHOW_WINDOW; 413 params.window_action = chrome::NavigateParams::SHOW_WINDOW;
414 chrome::Navigate(&params); 414 chrome::Navigate(&params);
415 } 415 }
416 416
417 - (BOOL)textView:(NSTextView*)textView 417 - (BOOL)textView:(NSTextView*)textView
418 clickedOnLink:(id)link 418 clickedOnLink:(id)link
419 atIndex:(NSUInteger)charIndex { 419 atIndex:(NSUInteger)charIndex {
420 if (textView == explanationField_.get()) { 420 if (textView == explanationField_.get()) {
421 [self learnMore]; 421 [self learnMore];
422 return YES; 422 return YES;
(...skipping 26 matching lines...) Expand all
449 449
450 - (NSButton*)createProfileButton { 450 - (NSButton*)createProfileButton {
451 return createProfileButton_.get(); 451 return createProfileButton_.get();
452 } 452 }
453 453
454 - (NSTextView*)explanationField { 454 - (NSTextView*)explanationField {
455 return explanationField_.get(); 455 return explanationField_.get();
456 } 456 }
457 457
458 @end 458 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698