summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/info_bar_view.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 22:25:33 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 22:25:33 +0000
commit6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7 (patch)
tree4ce1316dbfd179681bdff905a7d71f1b4cbb902c /chrome/browser/views/info_bar_view.cc
parent4c45708be10906e3cdbe9d40d206cfd3fcbaf1c2 (diff)
downloadchromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.zip
chromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.tar.gz
chromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.tar.bz2
Rename legacy methods that were in CamelCase to unix_hacker.
Required going through and modifying some of the code to solve name clashes. Review URL: http://codereview.chromium.org/2945 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/info_bar_view.cc')
-rw-r--r--chrome/browser/views/info_bar_view.cc23
1 files changed, 10 insertions, 13 deletions
diff --git a/chrome/browser/views/info_bar_view.cc b/chrome/browser/views/info_bar_view.cc
index 56c2ecc..00a704f9 100644
--- a/chrome/browser/views/info_bar_view.cc
+++ b/chrome/browser/views/info_bar_view.cc
@@ -64,18 +64,15 @@ void InfoBarView::GetPreferredSize(CSize *out) {
if (v->IsVisible()) {
CSize view_size;
v->GetPreferredSize(&view_size);
- out->cx = std::max(static_cast<int>(out->cx), v->GetWidth());
+ out->cx = std::max(static_cast<int>(out->cx), v->width());
out->cy += static_cast<int>(view_size.cy) + kSeparatorHeight;
}
}
}
void InfoBarView::Layout() {
- int width = GetWidth();
- int height = GetHeight();
-
int x = 0;
- int y = height;
+ int y = height();
// We lay the bars out from bottom to top.
for (int i = 0; i < GetChildViewCount(); ++i) {
@@ -85,7 +82,7 @@ void InfoBarView::Layout() {
CSize view_size;
v->GetPreferredSize(&view_size);
- int view_width = std::max(static_cast<int>(view_size.cx), width);
+ int view_width = std::max(static_cast<int>(view_size.cx), width());
y = y - view_size.cy - kSeparatorHeight;
v->SetBounds(x,
y,
@@ -156,14 +153,14 @@ int InfoBarView::GetActiveID() const {
}
void InfoBarView::PaintBorder(ChromeCanvas* canvas) {
- canvas->FillRectInt(kBorderColorTop, 0, 0, GetWidth(), 1);
+ canvas->FillRectInt(kBorderColorTop, 0, 0, width(), 1);
canvas->FillRectInt(kBorderColorBottom,
- 0, GetHeight() - kSeparatorHeight - 1,
- GetWidth(), kSeparatorHeight);
+ 0, height() - kSeparatorHeight - 1,
+ width(), kSeparatorHeight);
if (GetChildViewCount() > 0)
- canvas->FillRectInt(kSeparatorColor, 0, GetHeight() - kSeparatorHeight,
- GetWidth(), kSeparatorHeight);
+ canvas->FillRectInt(kSeparatorColor, 0, height() - kSeparatorHeight,
+ width(), kSeparatorHeight);
}
void InfoBarView::PaintSeparators(ChromeCanvas* canvas) {
@@ -187,8 +184,8 @@ void InfoBarView::PaintSeparator(ChromeCanvas* canvas,
ChromeViews::View* v2) {
canvas->FillRectInt(kSeparatorColor,
0,
- v2->GetY() - kSeparatorHeight,
- GetWidth(),
+ v2->y() - kSeparatorHeight,
+ width(),
kSeparatorHeight);
}