| 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/combobox_model.h" | 9 #include "app/combobox_model.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 | 467 |
| 468 AddNetwork(i, icon, name, false, std::wstring(), FORGET_BUTTON, | 468 AddNetwork(i, icon, name, false, std::wstring(), FORGET_BUTTON, |
| 469 TYPE_CELLULAR); | 469 TYPE_CELLULAR); |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 | 472 |
| 473 void RememberedSection::ButtonClicked(int button, int connection_type, int id) { | 473 void RememberedSection::ButtonClicked(int button, int connection_type, int id) { |
| 474 if (connection_type == TYPE_CELLULAR) { | 474 if (connection_type == TYPE_CELLULAR) { |
| 475 if (static_cast<int>(celluar_networks_.size()) > id) { | 475 if (static_cast<int>(celluar_networks_.size()) > id) { |
| 476 CrosLibrary::Get()->GetNetworkLibrary()->ForgetWirelessNetwork( | 476 CrosLibrary::Get()->GetNetworkLibrary()->ForgetWirelessNetwork( |
| 477 celluar_networks_[id]); | 477 celluar_networks_[id].service_path()); |
| 478 } | 478 } |
| 479 } else if (connection_type == TYPE_WIFI) { | 479 } else if (connection_type == TYPE_WIFI) { |
| 480 if (static_cast<int>(wifi_networks_.size()) > id) { | 480 if (static_cast<int>(wifi_networks_.size()) > id) { |
| 481 CrosLibrary::Get()->GetNetworkLibrary()->ForgetWirelessNetwork( | 481 CrosLibrary::Get()->GetNetworkLibrary()->ForgetWirelessNetwork( |
| 482 wifi_networks_[id]); | 482 wifi_networks_[id].service_path()); |
| 483 } | 483 } |
| 484 } else { | 484 } else { |
| 485 NOTREACHED(); | 485 NOTREACHED(); |
| 486 } | 486 } |
| 487 } | 487 } |
| 488 | 488 |
| 489 //////////////////////////////////////////////////////////////////////////////// | 489 //////////////////////////////////////////////////////////////////////////////// |
| 490 // InternetPageContentView | 490 // InternetPageContentView |
| 491 | 491 |
| 492 class InternetPageContentView : public SettingsPageView { | 492 class InternetPageContentView : public SettingsPageView { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 scroll_view_->SetBounds(GetLocalBounds(false)); | 608 scroll_view_->SetBounds(GetLocalBounds(false)); |
| 609 scroll_view_->Layout(); | 609 scroll_view_->Layout(); |
| 610 } | 610 } |
| 611 | 611 |
| 612 void InternetPageView::InitControlLayout() { | 612 void InternetPageView::InitControlLayout() { |
| 613 AddChildView(scroll_view_); | 613 AddChildView(scroll_view_); |
| 614 scroll_view_->SetContents(contents_view_); | 614 scroll_view_->SetContents(contents_view_); |
| 615 } | 615 } |
| 616 | 616 |
| 617 } // namespace chromeos | 617 } // namespace chromeos |
| OLD | NEW |