From 8c1bab17754336a875dd36b67299a04f284b6503 Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Thu, 21 Jan 2010 22:00:44 +0000 Subject: [Mac] relayout the import data and clear browser data buttons in the prefs for the string changes that already landed. more work will be needed to make the window match the new wants, but this gets the tests passing again. BUG=32719 TEST=unittests green up Review URL: http://codereview.chromium.org/551103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36793 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/nibs/Preferences.xib | 45 +++++++++------------- .../browser/cocoa/preferences_window_controller.mm | 13 ------- 2 files changed, 19 insertions(+), 39 deletions(-) diff --git a/chrome/app/nibs/Preferences.xib b/chrome/app/nibs/Preferences.xib index 9bfb4a3..e84dab9 100644 --- a/chrome/app/nibs/Preferences.xib +++ b/chrome/app/nibs/Preferences.xib @@ -2,15 +2,15 @@ 1050 - 9L31a - 677 + 9L30 + 680 949.54 353.00 YES - - + + YES @@ -1710,7 +1710,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{17, 202}, {128, 68}} + {{17, 234}, {128, 68}} YES @@ -1726,7 +1726,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{17, 315}, {128, 60}} + {{17, 347}, {128, 60}} YES @@ -1742,7 +1742,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 - {{152, 232}, {358, 38}} + {{152, 264}, {358, 38}} YES 2 @@ -1934,7 +1934,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{146, 194}, {184, 32}} + {{146, 226}, {184, 32}} YES @@ -1954,7 +1954,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{146, 347}, {184, 32}} + {{146, 379}, {184, 32}} YES @@ -1990,7 +1990,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{17, 137}, {128, 38}} + {{17, 169}, {128, 38}} YES @@ -2006,7 +2006,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{17, 67}, {128, 42}} + {{17, 67}, {128, 74}} YES @@ -2038,7 +2038,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 - {{152, 319}, {361, 28}} + {{152, 351}, {361, 28}} YES @@ -2055,7 +2055,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{146, 82}, {118, 32}} + {{146, 114}, {118, 32}} YES @@ -2075,7 +2075,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{264, 82}, {252, 32}} + {{146, 82}, {252, 32}} YES @@ -2095,7 +2095,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 - {{152, 137}, {358, 38}} + {{152, 169}, {358, 38}} YES 2 @@ -2307,7 +2307,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 - {{152, 294}, {82, 17}} + {{152, 326}, {82, 17}} YES @@ -2345,7 +2345,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - {530, 395} + {530, 427} NSView @@ -4136,11 +4136,11 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - + Personal Stuff View @@ -5203,7 +5203,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA YES - {{181, 403}, {530, 395}} + {{181, 371}, {530, 427}} com.apple.InterfaceBuilder.CocoaPlugin {{87, 136}, {530, 463}} com.apple.InterfaceBuilder.CocoaPlugin @@ -5439,13 +5439,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - NSWindow - - IBProjectSource - browser/cocoa/nswindow_local_state.h - - - PreferencesWindowController NSWindowController diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm index 51030b3..b60868c 100644 --- a/chrome/browser/cocoa/preferences_window_controller.mm +++ b/chrome/browser/cocoa/preferences_window_controller.mm @@ -541,21 +541,8 @@ class PrefObserverBridge : public NotificationObserver, [personalStuffGroupThemes_ objectAtIndex:kThemeResetButtonIndex], [personalStuffGroupThemes_ objectAtIndex:kThemeThemesButtonIndex]); - // Size the import buttons row. - const NSUInteger kBrowserDataGroupCount = 4; - const NSUInteger kBrowserDataImportButtonIndex = 1; - const NSUInteger kBrowserDataClearButtonIndex = 2; - DCHECK_EQ([personalStuffGroupBrowserData_ count], kBrowserDataGroupCount) - << "Expected only two items in Browser Data group"; - CGFloat browserDataRowChange = SizeToFitButtonPair( - [personalStuffGroupBrowserData_ - objectAtIndex:kBrowserDataImportButtonIndex], - [personalStuffGroupBrowserData_ - objectAtIndex:kBrowserDataClearButtonIndex]); - // Find the most any row changed in size. CGFloat maxWidthChange = std::max(defaultBrowserChange.width, themeRowChange); - maxWidthChange = std::max(maxWidthChange, browserDataRowChange); // If any grew wider, make the views wider. If they all shrank, they fit the // existing view widths, so no change is needed//. -- cgit v1.1