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

Side by Side Diff: chrome/browser/ui/cocoa/test/styled_text_field_test_helper.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #import "chrome/browser/ui/cocoa/styled_text_field_test_helper.h" 6 #import "chrome/browser/ui/cocoa/test/styled_text_field_test_helper.h"
7 7
8 @implementation StyledTextFieldTestCell 8 @implementation StyledTextFieldTestCell
9 @synthesize leftMargin = leftMargin_; 9 @synthesize leftMargin = leftMargin_;
10 @synthesize rightMargin = rightMargin_; 10 @synthesize rightMargin = rightMargin_;
11 11
12 - (NSRect)textFrameForFrame:(NSRect)frame { 12 - (NSRect)textFrameForFrame:(NSRect)frame {
13 NSRect textFrame = [super textFrameForFrame:frame]; 13 NSRect textFrame = [super textFrameForFrame:frame];
14 textFrame.origin.x += leftMargin_; 14 textFrame.origin.x += leftMargin_;
15 textFrame.size.width -= (leftMargin_ + rightMargin_); 15 textFrame.size.width -= (leftMargin_ + rightMargin_);
16 return textFrame; 16 return textFrame;
17 } 17 }
18 @end 18 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698