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

Unified Diff: chrome/browser/views/infobars/infobars.cc

Issue 223029: Clean up a few bits of files that I'm about to modify. The only visible chan... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/views/infobars/infobars.cc
===================================================================
--- chrome/browser/views/infobars/infobars.cc (revision 27132)
+++ chrome/browser/views/infobars/infobars.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,7 +28,6 @@
static const int kHorizontalPadding = 3;
static const int kIconLabelSpacing = 5;
static const int kButtonSpacing = 5;
-static const int kWordSpacing = 2;
static const SkColor kInfoBackgroundColorTop = SkColorSetRGB(170, 214, 112);
static const SkColor kInfoBackgroundColorBottom = SkColorSetRGB(146, 205, 114);
@@ -386,7 +385,7 @@
bool has_second_label = !label_2_->GetText().empty();
if (has_second_label) {
// Embed the link in the text string between the two labels.
- link_->SetBounds(label_1_->bounds().right() + kWordSpacing,
+ link_->SetBounds(label_1_->bounds().right(),
OffsetY(this, link_ps), link_ps.width(), link_ps.height());
} else {
// Right-align the link toward the edge of the InfoBar.
@@ -397,7 +396,7 @@
// Layout the right label (we do this regardless of whether or not it has
// text).
gfx::Size label_2_ps = label_2_->GetPreferredSize();
- label_2_->SetBounds(link_->bounds().right() + kWordSpacing,
+ label_2_->SetBounds(link_->bounds().right(),
OffsetY(this, label_2_ps), label_2_ps.width(),
label_2_ps.height());
}

Powered by Google App Engine
This is Rietveld 408576698