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

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

Issue 974323002: Componentize autofill dialog common code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
10 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" 9 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
11 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" 10 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h"
11 #include "components/autofill/core/browser/ui/autofill_dialog_types.h"
12 12
13 // Padding above the notifications section. 13 // Padding above the notifications section.
14 const CGFloat kTopPadding = 14 const CGFloat kTopPadding =
15 autofill::kDetailVerticalPadding - autofill::kArrowHeight; 15 autofill::kDetailVerticalPadding - autofill::kArrowHeight;
16 16
17 @implementation AutofillNotificationContainer 17 @implementation AutofillNotificationContainer
18 18
19 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate { 19 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate {
20 if (self = [super init]) { 20 if (self = [super init]) {
21 delegate_ = delegate; 21 delegate_ = delegate;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 [notificationControllers_ addObject:notificationController]; 95 [notificationControllers_ addObject:notificationController];
96 [[self view] addSubview:[notificationController view]]; 96 [[self view] addSubview:[notificationController view]];
97 } 97 }
98 } 98 }
99 99
100 - (void)setAnchorView:(NSView*)anchorView { 100 - (void)setAnchorView:(NSView*)anchorView {
101 anchorView_ = anchorView; 101 anchorView_ = anchorView;
102 } 102 }
103 103
104 @end 104 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698