| Index: chrome/browser/ui/cocoa/translate/translate_infobar_base.mm
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/translate/translate_infobar_base.mm (revision 88097)
|
| +++ chrome/browser/ui/cocoa/translate/translate_infobar_base.mm (working copy)
|
| @@ -155,9 +155,6 @@
|
| // Reloads text for all labels for the current state.
|
| - (void)loadLabelText:(TranslateErrors::Type)error;
|
|
|
| -// Set the infobar background gradient.
|
| -- (void)setInfoBarGradientColor;
|
| -
|
| // Main function to update the toolbar graphic state and data model after
|
| // the state has changed.
|
| // Controls are moved around as needed and visibility changed to match the
|
| @@ -251,18 +248,6 @@
|
| [[self visibleControls] lastObject]];
|
| }
|
|
|
| -- (void)setInfoBarGradientColor {
|
| - NSColor* startingColor = [NSColor colorWithCalibratedWhite:0.93 alpha:1.0];
|
| - NSColor* endingColor = [NSColor colorWithCalibratedWhite:0.85 alpha:1.0];
|
| - NSGradient* translateInfoBarGradient =
|
| - [[[NSGradient alloc] initWithStartingColor:startingColor
|
| - endingColor:endingColor] autorelease];
|
| -
|
| - [infoBarView_ setGradient:translateInfoBarGradient];
|
| - [infoBarView_
|
| - setStrokeColor:[NSColor colorWithCalibratedWhite:0.75 alpha:1.0]];
|
| -}
|
| -
|
| - (void)removeOkCancelButtons {
|
| // Removing okButton_ & cancelButton_ from the view may cause them
|
| // to be released and since we can still access them from other areas
|
| @@ -410,9 +395,6 @@
|
| NSRect cancelButtonFrame = [cancelButton_ frame];
|
| spaceBetweenControls_ = NSMinX(cancelButtonFrame) - NSMaxX(okButtonFrame);
|
|
|
| - // Set infobar background color.
|
| - [self setInfoBarGradientColor];
|
| -
|
| // Instantiate additional controls.
|
| [self constructViews];
|
|
|
|
|