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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_suggestion_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_suggestion_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/mac/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 13 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
14 #include "chrome/browser/ui/chrome_style.h" 14 #include "chrome/browser/ui/chrome_style.h"
15 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h" 15 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h"
16 #include "skia/ext/skia_utils_mac.h" 16 #include "skia/ext/skia_utils_mac.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Horizontal padding between text and other elements (in pixels). 20 // Horizontal padding between text and other elements (in pixels).
21 const int kAroundTextPadding = 4; 21 const int kAroundTextPadding = 4;
22 22
23 // Vertical padding between individual elements. 23 // Vertical padding between individual elements.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 [label_ setFrame:labelFrame]; 173 [label_ setFrame:labelFrame];
174 [label2_ setFrameOrigin:NSMakePoint( 174 [label2_ setFrameOrigin:NSMakePoint(
175 0, 175 0,
176 NSMinY(lineFrame) - kAroundTextPadding - NSHeight([label2_ frame]))]; 176 NSMinY(lineFrame) - kAroundTextPadding - NSHeight([label2_ frame]))];
177 [[self view] setFrameSize:preferredContainerSize]; 177 [[self view] setFrameSize:preferredContainerSize];
178 } 178 }
179 179
180 @end 180 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698