| 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/autofill/autofill_notification_controller.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | |
| 14 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 13 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
| 15 #include "chrome/browser/ui/chrome_style.h" | 14 #include "chrome/browser/ui/chrome_style.h" |
| 16 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 15 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
| 17 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" | 16 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" |
| 17 #include "components/autofill/core/browser/ui/autofill_dialog_types.h" |
| 18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
| 19 #include "skia/ext/skia_utils_mac.h" | 19 #include "skia/ext/skia_utils_mac.h" |
| 20 #import "ui/base/cocoa/controls/hyperlink_text_view.h" | 20 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
| 21 | 21 |
| 22 @interface AutofillNotificationView : NSView { | 22 @interface AutofillNotificationView : NSView { |
| 23 @private | 23 @private |
| 24 // Weak, determines anchor point for arrow. | 24 // Weak, determines anchor point for arrow. |
| 25 NSView* arrowAnchorView_; | 25 NSView* arrowAnchorView_; |
| 26 BOOL hasArrow_; | 26 BOOL hasArrow_; |
| 27 base::scoped_nsobject<NSColor> backgroundColor_; | 27 base::scoped_nsobject<NSColor> backgroundColor_; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 | 265 |
| 266 - (BOOL)textView:(NSTextView *)textView | 266 - (BOOL)textView:(NSTextView *)textView |
| 267 clickedOnLink:(id)link | 267 clickedOnLink:(id)link |
| 268 atIndex:(NSUInteger)charIndex { | 268 atIndex:(NSUInteger)charIndex { |
| 269 delegate_->LinkClicked(linkURL_); | 269 delegate_->LinkClicked(linkURL_); |
| 270 return YES; | 270 return YES; |
| 271 } | 271 } |
| 272 | 272 |
| 273 @end | 273 @end |
| OLD | NEW |