| OLD | NEW |
| 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 Loading... |
| 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(¶ms); | 402 chrome::Navigate(¶ms); |
| 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 Loading... |
| 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 |
| OLD | NEW |