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/bubble_sync_promo_controller.h" | 5 #import "chrome/browser/ui/cocoa/bubble_sync_promo_controller.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
8 #include "chrome/browser/signin/signin_promo.h" | 10 #include "chrome/browser/signin/signin_promo.h" |
9 #include "chrome/browser/ui/chrome_pages.h" | 11 #include "chrome/browser/ui/chrome_pages.h" |
10 #include "chrome/browser/ui/chrome_style.h" | 12 #include "chrome/browser/ui/chrome_style.h" |
11 #include "chrome/grit/chromium_strings.h" | 13 #include "chrome/grit/chromium_strings.h" |
12 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
13 #include "skia/ext/skia_utils_mac.h" | 15 #include "skia/ext/skia_utils_mac.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
15 #import "ui/base/cocoa/controls/hyperlink_text_view.h" | 17 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
16 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 112 } |
111 | 113 |
112 - (BOOL)textView:(NSTextView *)textView | 114 - (BOOL)textView:(NSTextView *)textView |
113 clickedOnLink:(id)link | 115 clickedOnLink:(id)link |
114 atIndex:(NSUInteger)charIndex { | 116 atIndex:(NSUInteger)charIndex { |
115 chrome::ShowBrowserSignin(browser_, accessPoint_); | 117 chrome::ShowBrowserSignin(browser_, accessPoint_); |
116 return YES; | 118 return YES; |
117 } | 119 } |
118 | 120 |
119 @end | 121 @end |
OLD | NEW |