Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm

Issue 595283002: Move nsview_additions and hyperlink_text_view to ui/base/cocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698