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

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

Issue 21692002: Rename AutofillDialogController to AutofillDialogViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 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 | Annotate | Revision Log
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 "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
11 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
12 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" 12 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
13 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" 13 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h"
14 #include "skia/ext/skia_utils_mac.h" 14 #include "skia/ext/skia_utils_mac.h"
15 15
16 @implementation AutofillNotificationContainer 16 @implementation AutofillNotificationContainer
17 17
18 - (id)initWithController:(autofill::AutofillDialogController*)controller { 18 - (id)initWithController:(autofill::AutofillDialogViewDelegate*)controller {
19 if (self = [super init]) { 19 if (self = [super init]) {
20 controller_ = controller; 20 controller_ = controller;
21 [self setView:[[[NSView alloc] initWithFrame:NSZeroRect] autorelease]]; 21 [self setView:[[[NSView alloc] initWithFrame:NSZeroRect] autorelease]];
22 } 22 }
23 return self; 23 return self;
24 } 24 }
25 25
26 // Just here to satisfy the protocol - not actually invoked. 26 // Just here to satisfy the protocol - not actually invoked.
27 - (NSSize)preferredSize { 27 - (NSSize)preferredSize {
28 NOTREACHED(); 28 NOTREACHED();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 - (IBAction)checkboxClicked:(id)sender { 114 - (IBAction)checkboxClicked:(id)sender {
115 DCHECK(checkboxNotification_); 115 DCHECK(checkboxNotification_);
116 BOOL isChecked = ([sender state] == NSOnState); 116 BOOL isChecked = ([sender state] == NSOnState);
117 controller_->NotificationCheckboxStateChanged(checkboxNotification_->type(), 117 controller_->NotificationCheckboxStateChanged(checkboxNotification_->type(),
118 isChecked); 118 isChecked);
119 } 119 }
120 120
121 @end 121 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698