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_container.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
9 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
10 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 12 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
11 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" | 13 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" |
12 | 14 |
13 @implementation AutofillNotificationContainer | 15 @implementation AutofillNotificationContainer |
14 | 16 |
15 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate { | 17 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate { |
16 if (self = [super init]) { | 18 if (self = [super init]) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 notificationController([[AutofillNotificationController alloc] | 77 notificationController([[AutofillNotificationController alloc] |
76 initWithNotification:¬ification | 78 initWithNotification:¬ification |
77 delegate:delegate_]); | 79 delegate:delegate_]); |
78 | 80 |
79 [notificationControllers_ addObject:notificationController]; | 81 [notificationControllers_ addObject:notificationController]; |
80 [[self view] addSubview:[notificationController view]]; | 82 [[self view] addSubview:[notificationController view]]; |
81 } | 83 } |
82 } | 84 } |
83 | 85 |
84 @end | 86 @end |
OLD | NEW |