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

Unified Diff: chrome/browser/ui/cocoa/translate/translate_infobar_base.mm

Issue 7130001: Make infobar background gray (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
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];
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm ('k') | chrome/browser/ui/gtk/infobars/infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698