| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/wimax_config_view.h" | 5 #include "chrome/browser/chromeos/options/wimax_config_view.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/enrollment_dialog_view.h" | 10 #include "chrome/browser/chromeos/enrollment_dialog_view.h" |
| 11 #include "chrome/browser/chromeos/login/startup_utils.h" | 11 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 12 #include "chrome/browser/chromeos/net/shill_error.h" | 12 #include "chrome/browser/chromeos/net/shill_error.h" |
| 13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
| 14 #include "chrome/browser/ui/views/harmony/layout_delegate.h" | 14 #include "chrome/browser/ui/views/harmony/layout_delegate.h" |
| 15 #include "chrome/browser/ui/views/layout_utils.h" | |
| 16 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 17 #include "chrome/grit/theme_resources.h" | 16 #include "chrome/grit/theme_resources.h" |
| 18 #include "chromeos/login/login_state.h" | 17 #include "chromeos/login/login_state.h" |
| 19 #include "chromeos/network/network_configuration_handler.h" | 18 #include "chromeos/network/network_configuration_handler.h" |
| 20 #include "chromeos/network/network_connect.h" | 19 #include "chromeos/network/network_connect.h" |
| 21 #include "chromeos/network/network_event_log.h" | 20 #include "chromeos/network/network_event_log.h" |
| 22 #include "chromeos/network/network_profile.h" | 21 #include "chromeos/network/network_profile.h" |
| 23 #include "chromeos/network/network_profile_handler.h" | 22 #include "chromeos/network/network_profile_handler.h" |
| 24 #include "chromeos/network/network_state.h" | 23 #include "chromeos/network/network_state.h" |
| 25 #include "chromeos/network/network_state_handler.h" | 24 #include "chromeos/network/network_state_handler.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 GetNetworkState(service_path_); | 202 GetNetworkState(service_path_); |
| 204 DCHECK(wimax && wimax->type() == shill::kTypeWimax); | 203 DCHECK(wimax && wimax->type() == shill::kTypeWimax); |
| 205 | 204 |
| 206 WifiConfigView::ParseEAPUIProperty( | 205 WifiConfigView::ParseEAPUIProperty( |
| 207 &save_credentials_ui_data_, wimax, ::onc::eap::kSaveCredentials); | 206 &save_credentials_ui_data_, wimax, ::onc::eap::kSaveCredentials); |
| 208 WifiConfigView::ParseEAPUIProperty( | 207 WifiConfigView::ParseEAPUIProperty( |
| 209 &identity_ui_data_, wimax, ::onc::eap::kIdentity); | 208 &identity_ui_data_, wimax, ::onc::eap::kIdentity); |
| 210 WifiConfigView::ParseUIProperty( | 209 WifiConfigView::ParseUIProperty( |
| 211 &passphrase_ui_data_, wimax, ::onc::wifi::kPassphrase); | 210 &passphrase_ui_data_, wimax, ::onc::wifi::kPassphrase); |
| 212 | 211 |
| 213 views::GridLayout* layout = layout_utils::CreatePanelLayout(this); | 212 views::GridLayout* layout = views::GridLayout::CreatePanel(this); |
| 214 LayoutDelegate* delegate = LayoutDelegate::Get(); | 213 LayoutDelegate* delegate = LayoutDelegate::Get(); |
| 215 | 214 |
| 216 const int column_view_set_id = 0; | 215 const int column_view_set_id = 0; |
| 217 views::ColumnSet* column_set = layout->AddColumnSet(column_view_set_id); | 216 views::ColumnSet* column_set = layout->AddColumnSet(column_view_set_id); |
| 218 const int kPasswordVisibleWidth = 20; | 217 const int kPasswordVisibleWidth = 20; |
| 219 // Label | 218 // Label |
| 220 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 1, | 219 column_set->AddColumn(views::GridLayout::LEADING, views::GridLayout::FILL, 1, |
| 221 views::GridLayout::USE_PREF, 0, 0); | 220 views::GridLayout::USE_PREF, 0, 0); |
| 222 column_set->AddPaddingColumn( | 221 column_set->AddPaddingColumn( |
| 223 0, delegate->GetMetric( | 222 0, delegate->GetMetric( |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 } | 386 } |
| 388 } | 387 } |
| 389 | 388 |
| 390 void WimaxConfigView::InitFocus() { | 389 void WimaxConfigView::InitFocus() { |
| 391 views::View* view_to_focus = GetInitiallyFocusedView(); | 390 views::View* view_to_focus = GetInitiallyFocusedView(); |
| 392 if (view_to_focus) | 391 if (view_to_focus) |
| 393 view_to_focus->RequestFocus(); | 392 view_to_focus->RequestFocus(); |
| 394 } | 393 } |
| 395 | 394 |
| 396 } // namespace chromeos | 395 } // namespace chromeos |
| OLD | NEW |