| 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 #include "chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 10 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 11 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" | 11 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" |
| 12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 13 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" | |
| 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 15 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
| 16 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 15 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
| 17 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" | 16 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
| 18 #include "skia/ext/skia_utils_mac.h" | 17 #include "skia/ext/skia_utils_mac.h" |
| 18 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
| 19 #include "ui/base/cocoa/window_size_constants.h" | 19 #include "ui/base/cocoa/window_size_constants.h" |
| 20 #include "ui/native_theme/native_theme.h" | 20 #include "ui/native_theme/native_theme.h" |
| 21 | 21 |
| 22 using autofill::GeneratedCreditCardBubbleCocoa; | 22 using autofill::GeneratedCreditCardBubbleCocoa; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 const CGFloat kTitlePadding = 20.0; | 26 const CGFloat kTitlePadding = 20.0; |
| 27 const CGFloat kInset = 20.0; | 27 const CGFloat kInset = 20.0; |
| 28 | 28 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 void GeneratedCreditCardBubbleCocoa::OnBubbleClosing() { | 236 void GeneratedCreditCardBubbleCocoa::OnBubbleClosing() { |
| 237 bubbleController_ = nil; | 237 bubbleController_ = nil; |
| 238 } | 238 } |
| 239 | 239 |
| 240 void GeneratedCreditCardBubbleCocoa::OnLinkClicked() { | 240 void GeneratedCreditCardBubbleCocoa::OnLinkClicked() { |
| 241 if (controller_) | 241 if (controller_) |
| 242 controller_->OnLinkClicked(); | 242 controller_->OnLinkClicked(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // autofill | 245 } // autofill |
| OLD | NEW |