| 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/login/screens/network_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/network_screen.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Time in seconds for connection timeout. | 24 // Time in seconds for connection timeout. |
| 25 const int kConnectionTimeoutSec = 40; | 25 const int kConnectionTimeoutSec = 40; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 namespace chromeos { | 29 namespace chromeos { |
| 30 | 30 |
| 31 /////////////////////////////////////////////////////////////////////////////// | 31 /////////////////////////////////////////////////////////////////////////////// |
| 32 // NetworkScreen, public: | 32 // NetworkScreen, public: |
| 33 | 33 |
| 34 // static |
| 35 NetworkScreen* NetworkScreen::Get(ScreenManager* manager) { |
| 36 return static_cast<NetworkScreen*>( |
| 37 manager->GetScreen(WizardController::kNetworkScreenName)); |
| 38 } |
| 39 |
| 34 NetworkScreen::NetworkScreen(ScreenObserver* screen_observer, | 40 NetworkScreen::NetworkScreen(ScreenObserver* screen_observer, |
| 35 NetworkScreenActor* actor) | 41 NetworkScreenActor* actor) |
| 36 : WizardScreen(screen_observer), | 42 : WizardScreen(screen_observer), |
| 37 is_network_subscribed_(false), | 43 is_network_subscribed_(false), |
| 38 continue_pressed_(false), | 44 continue_pressed_(false), |
| 39 actor_(actor), | 45 actor_(actor), |
| 40 network_state_helper_(new login::NetworkStateHelper) { | 46 network_state_helper_(new login::NetworkStateHelper) { |
| 41 DCHECK(actor_); | 47 DCHECK(actor_); |
| 42 if (actor_) | 48 if (actor_) |
| 43 actor_->SetDelegate(this); | 49 actor_->SetDelegate(this); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 203 } |
| 198 | 204 |
| 199 network_id_ = network_id; | 205 network_id_ = network_id; |
| 200 if (actor_) { | 206 if (actor_) { |
| 201 actor_->ShowConnectingStatus(continue_pressed_, network_id_); | 207 actor_->ShowConnectingStatus(continue_pressed_, network_id_); |
| 202 actor_->EnableContinue(false); | 208 actor_->EnableContinue(false); |
| 203 } | 209 } |
| 204 } | 210 } |
| 205 | 211 |
| 206 } // namespace chromeos | 212 } // namespace chromeos |
| OLD | NEW |