| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.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" |
| 11 #include "base/mac/bundle_locations.h" | 11 #include "base/mac/bundle_locations.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
| 15 #include "chrome/browser/ui/browser_navigator.h" | 15 #include "chrome/browser/ui/browser_navigator.h" |
| 16 #import "chrome/browser/ui/chrome_style.h" | 16 #import "chrome/browser/ui/chrome_style.h" |
| 17 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_control_u
tils.h" | 17 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_control_u
tils.h" |
| 18 #import "chrome/browser/ui/cocoa/hover_close_button.h" | 18 #import "chrome/browser/ui/cocoa/hover_close_button.h" |
| 19 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" | |
| 20 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" | 19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" |
| 21 #include "chrome/browser/ui/host_desktop.h" | 20 #include "chrome/browser/ui/host_desktop.h" |
| 22 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" | 21 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
| 23 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
| 24 #include "google_apis/gaia/gaia_auth_util.h" | 23 #include "google_apis/gaia/gaia_auth_util.h" |
| 25 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
| 26 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
| 27 #include "skia/ext/skia_utils_mac.h" | 26 #include "skia/ext/skia_utils_mac.h" |
| 28 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 27 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 28 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 const CGFloat kWindowMinWidth = 500; | 33 const CGFloat kWindowMinWidth = 500; |
| 34 const CGFloat kButtonGap = 6; | 34 const CGFloat kButtonGap = 6; |
| 35 const SkColor kDialogAlertBarBackgroundColor = 0xFFF6F6F6; | 35 const SkColor kDialogAlertBarBackgroundColor = 0xFFF6F6F6; |
| 36 const SkColor kDialogAlertBarBorderColor = 0xFFE1E1E1; | 36 const SkColor kDialogAlertBarBorderColor = 0xFFE1E1E1; |
| 37 const CGFloat kDialogAlertBarBorderWidth = 1; | 37 const CGFloat kDialogAlertBarBorderWidth = 1; |
| 38 | 38 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 | 464 |
| 465 - (NSButton*)createProfileButton { | 465 - (NSButton*)createProfileButton { |
| 466 return createProfileButton_.get(); | 466 return createProfileButton_.get(); |
| 467 } | 467 } |
| 468 | 468 |
| 469 - (NSTextView*)explanationField { | 469 - (NSTextView*)explanationField { |
| 470 return explanationField_.get(); | 470 return explanationField_.get(); |
| 471 } | 471 } |
| 472 | 472 |
| 473 @end | 473 @end |
| OLD | NEW |