summaryrefslogtreecommitdiffstats
path: root/chrome/browser/native_ui_contents.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:24:02 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 03:24:02 +0000
commit9a3f0ac2899139ace97e399015259d028b4d5704 (patch)
treeb23a9d2986df7fe9fa59317ae7348abf6534d95d /chrome/browser/native_ui_contents.cc
parent308b5e017464f310252b77dd52752de120aa98e7 (diff)
downloadchromium_src-9a3f0ac2899139ace97e399015259d028b4d5704.zip
chromium_src-9a3f0ac2899139ace97e399015259d028b4d5704.tar.gz
chromium_src-9a3f0ac2899139ace97e399015259d028b4d5704.tar.bz2
Make border and background setting and getting non-virtual and use the correct style. I was debugging in here and this was annoying me, since there is no reason for these functions to be virtual.
Review URL: http://codereview.chromium.org/10638 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/native_ui_contents.cc')
-rw-r--r--chrome/browser/native_ui_contents.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/native_ui_contents.cc b/chrome/browser/native_ui_contents.cc
index 1961e26d..840bb91 100644
--- a/chrome/browser/native_ui_contents.cc
+++ b/chrome/browser/native_ui_contents.cc
@@ -164,7 +164,7 @@ LRESULT NativeUIContents::OnCreate(LPCREATESTRUCT create_struct) {
// Install the focus manager so we get notified of Tab key events.
views::FocusManager::InstallFocusSubclass(GetHWND(), NULL);
- GetRootView()->SetBackground(new NativeUIBackground);
+ GetRootView()->set_background(new NativeUIBackground);
return 0;
}
@@ -497,10 +497,11 @@ SearchableUIContainer::SearchableUIContainer(
search_field_->SetController(this);
scroll_view_ = new views::ScrollView;
- scroll_view_->SetBackground(views::Background::CreateSolidBackground(kBackground));
+ scroll_view_->set_background(
+ views::Background::CreateSolidBackground(kBackground));
// Set background class so that native controls can get a color.
- SetBackground(new SearchableUIBackground(kBackground));
+ set_background(new SearchableUIBackground(kBackground));
throbber_ = new views::SmoothedThrobber(50);
@@ -516,7 +517,7 @@ SearchableUIContainer::SearchableUIContainer(
// Set a background color for the search button. If SearchableUIContainer
// provided a background, then the search button could inherit that instead.
- search_button_->SetBackground(new SearchableUIBackground(kBackground));
+ search_button_->set_background(new SearchableUIBackground(kBackground));
// For the first row (icon, title/text field, search button and throbber).
ColumnSet* column_set = layout->AddColumnSet(0);