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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_main_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_main_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 12 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
13 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" 13 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
14 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" 14 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
15 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" 15 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
16 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" 16 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h"
17 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 17 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
18 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" 18 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 20 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
21 #include "ui/base/cocoa/window_size_constants.h" 21 #include "ui/base/cocoa/window_size_constants.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 #include "ui/base/range/range.h" 23 #include "ui/base/range/range.h"
24 24
25 @interface AutofillMainContainer (Private) 25 @interface AutofillMainContainer (Private)
26 - (void)buildWindowButtonsForFrame:(NSRect)frame; 26 - (void)buildWindowButtonsForFrame:(NSRect)frame;
27 - (void)layoutButtons; 27 - (void)layoutButtons;
28 - (NSSize)preferredLegalDocumentSizeForWidth:(CGFloat)width; 28 - (NSSize)preferredLegalDocumentSizeForWidth:(CGFloat)width;
29 @end 29 @end
30 30
31 31
32 @implementation AutofillMainContainer 32 @implementation AutofillMainContainer
33 33
34 @synthesize target = target_; 34 @synthesize target = target_;
35 35
36 - (id)initWithController:(autofill::AutofillDialogController*)controller { 36 - (id)initWithController:(autofill::AutofillDialogViewDelegate*)controller {
groby-ooo-7-16 2013/08/02 20:22:21 initWithDelegate...
37 if (self = [super init]) { 37 if (self = [super init]) {
38 controller_ = controller; 38 controller_ = controller;
39 } 39 }
40 return self; 40 return self;
41 } 41 }
42 42
43 - (void)loadView { 43 - (void)loadView {
44 [self buildWindowButtonsForFrame:NSZeroRect]; 44 [self buildWindowButtonsForFrame:NSZeroRect];
45 45
46 base::scoped_nsobject<NSView> view([[NSView alloc] initWithFrame:NSZeroRect]); 46 base::scoped_nsobject<NSView> view([[NSView alloc] initWithFrame:NSZeroRect]);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 @end 283 @end
284 284
285 285
286 @implementation AutofillMainContainer (Testing) 286 @implementation AutofillMainContainer (Testing)
287 287
288 - (NSButton*)saveInChromeCheckboxForTesting { 288 - (NSButton*)saveInChromeCheckboxForTesting {
289 return saveInChromeCheckbox_.get(); 289 return saveInChromeCheckbox_.get();
290 } 290 }
291 291
292 @end 292 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698