| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/options/internet_page_view.h" | 5 #include "chrome/browser/chromeos/options/internet_page_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 518 |
| 519 DISALLOW_COPY_AND_ASSIGN(InternetPageContentView); | 519 DISALLOW_COPY_AND_ASSIGN(InternetPageContentView); |
| 520 }; | 520 }; |
| 521 | 521 |
| 522 //////////////////////////////////////////////////////////////////////////////// | 522 //////////////////////////////////////////////////////////////////////////////// |
| 523 // InternetPageContentView, SettingsPageView implementation: | 523 // InternetPageContentView, SettingsPageView implementation: |
| 524 | 524 |
| 525 InternetPageContentView::InternetPageContentView(Profile* profile) | 525 InternetPageContentView::InternetPageContentView(Profile* profile) |
| 526 : SettingsPageView(profile) { | 526 : SettingsPageView(profile) { |
| 527 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 527 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 528 line_height_ = rb.GetFont(ResourceBundle::BaseFont).height(); | 528 line_height_ = rb.GetFont(ResourceBundle::BaseFont).GetHeight(); |
| 529 } | 529 } |
| 530 | 530 |
| 531 void InternetPageContentView::RefreshContents() { | 531 void InternetPageContentView::RefreshContents() { |
| 532 wired_section_->RefreshContents(); | 532 wired_section_->RefreshContents(); |
| 533 wireless_section_->RefreshContents(); | 533 wireless_section_->RefreshContents(); |
| 534 remembered_section_->RefreshContents(); | 534 remembered_section_->RefreshContents(); |
| 535 } | 535 } |
| 536 | 536 |
| 537 int InternetPageContentView::GetLineScrollIncrement( | 537 int InternetPageContentView::GetLineScrollIncrement( |
| 538 views::ScrollView* scroll_view, | 538 views::ScrollView* scroll_view, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 scroll_view_->SetBounds(GetLocalBounds(false)); | 611 scroll_view_->SetBounds(GetLocalBounds(false)); |
| 612 scroll_view_->Layout(); | 612 scroll_view_->Layout(); |
| 613 } | 613 } |
| 614 | 614 |
| 615 void InternetPageView::InitControlLayout() { | 615 void InternetPageView::InitControlLayout() { |
| 616 AddChildView(scroll_view_); | 616 AddChildView(scroll_view_); |
| 617 scroll_view_->SetContents(contents_view_); | 617 scroll_view_->SetContents(contents_view_); |
| 618 } | 618 } |
| 619 | 619 |
| 620 } // namespace chromeos | 620 } // namespace chromeos |
| OLD | NEW |