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

Unified Diff: chrome/browser/cocoa/translate/after_translate_infobar_controller.mm

Issue 2804035: Clean up mac translate bars. (Closed)
Patch Set: Fixes. Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/translate/before_translate_infobar_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/translate/after_translate_infobar_controller.mm
diff --git a/chrome/browser/cocoa/translate/after_translate_infobar_controller.mm b/chrome/browser/cocoa/translate/after_translate_infobar_controller.mm
index f263c7044abbba9869cd4de54d726f370053bcd5..7e01146aad26fe7d96e4894ad0af98e135399c22 100644
--- a/chrome/browser/cocoa/translate/after_translate_infobar_controller.mm
+++ b/chrome/browser/cocoa/translate/after_translate_infobar_controller.mm
@@ -6,6 +6,7 @@
#include "base/sys_string_conversions.h"
using TranslateInfoBarUtilities::MoveControl;
+using TranslateInfoBarUtilities::VerifyControlOrderAndSpacing;
@implementation AfterTranslateInfobarController
@@ -34,9 +35,9 @@ using TranslateInfoBarUtilities::MoveControl;
}
NSView* lastControl = lastPopup;
- MoveControl(label1_, firstPopup, 0, true);
- MoveControl(firstPopup, label2_, 0, true);
- MoveControl(label2_, lastPopup, 0, true);
+ MoveControl(label1_, firstPopup, spaceBetweenControls_ / 2, true);
+ MoveControl(firstPopup, label2_, spaceBetweenControls_ / 2, true);
+ MoveControl(label2_, lastPopup, spaceBetweenControls_ / 2, true);
MoveControl(lastPopup, label3_, 0, true);
lastControl = label3_;
« no previous file with comments | « no previous file | chrome/browser/cocoa/translate/before_translate_infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698