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

Side by Side Diff: chrome/browser/cocoa/vertical_layout_view.mm

Issue 668171: AutoFill Mac preference for enabling Address Book "me" card usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cocoa/vertical_layout_view.h" 5 #import "chrome/browser/cocoa/vertical_layout_view.h"
6 6
7 @interface VerticalLayoutView(PrivateMethods) 7 @interface VerticalLayoutView(PrivateMethods)
8 - (void)layoutChildren; 8 - (void)layoutChildren;
9 @end 9 @end
10 10
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 // Flip the coordinate system to arrange child views from top to bottom 24 // Flip the coordinate system to arrange child views from top to bottom
25 // with top at 0, increasing down. This simplifies the logic and plays 25 // with top at 0, increasing down. This simplifies the logic and plays
26 // well with containing scroll views. 26 // well with containing scroll views.
27 - (BOOL)isFlipped { 27 - (BOOL)isFlipped {
28 return YES; 28 return YES;
29 } 29 }
30 30
31 // Override the default |viewWillDraw| to indicate to drawing machinery proper 31 // Override the default |viewWillDraw| to indicate to drawing machinery proper
32 // arrangement of subvies. 32 // arrangement of subviews.
33 - (void)viewWillDraw { 33 - (void)viewWillDraw {
34 // Reposition child views prior to super's descent into its |viewWillDraw| 34 // Reposition child views prior to super's descent into its |viewWillDraw|
35 // pass. 35 // pass.
36 [self layoutChildren]; 36 [self layoutChildren];
37 37
38 // Default descent into subviews. 38 // Default descent into subviews.
39 [super viewWillDraw]; 39 [super viewWillDraw];
40 40
41 // Adjust children again to account for any modifications made during the 41 // Adjust children again to account for any modifications made during the
42 // prior descent. Most importantly we resize our own frame to properly 42 // prior descent. Most importantly we resize our own frame to properly
(...skipping 21 matching lines...) Expand all
64 } 64 }
65 65
66 // Resize self to reflect vertical extent of children. 66 // Resize self to reflect vertical extent of children.
67 [self setFrame:NSMakeRect([self frame].origin.x, 67 [self setFrame:NSMakeRect([self frame].origin.x,
68 [self frame].origin.y, 68 [self frame].origin.y,
69 [self frame].size.width, 69 [self frame].size.width,
70 yPosition)]; 70 yPosition)];
71 } 71 }
72 72
73 @end 73 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698