| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 public NetworkPortalDetector::Observer { | 35 public NetworkPortalDetector::Observer { |
| 36 public: | 36 public: |
| 37 UpdateScreen(BaseScreenDelegate* base_screen_delegate, | 37 UpdateScreen(BaseScreenDelegate* base_screen_delegate, |
| 38 UpdateView* view, | 38 UpdateView* view, |
| 39 pairing_chromeos::HostPairingController* remora_controller); | 39 pairing_chromeos::HostPairingController* remora_controller); |
| 40 ~UpdateScreen() override; | 40 ~UpdateScreen() override; |
| 41 | 41 |
| 42 static UpdateScreen* Get(ScreenManager* manager); | 42 static UpdateScreen* Get(ScreenManager* manager); |
| 43 | 43 |
| 44 // UpdateModel: | 44 // UpdateModel: |
| 45 void PrepareToShow() override; | |
| 46 void Show() override; | 45 void Show() override; |
| 47 void Hide() override; | 46 void Hide() override; |
| 48 void Initialize(::login::ScreenContext* context) override; | 47 void Initialize(::login::ScreenContext* context) override; |
| 49 void OnViewDestroyed(UpdateView* view) override; | 48 void OnViewDestroyed(UpdateView* view) override; |
| 50 void OnUserAction(const std::string& action_id) override; | 49 void OnUserAction(const std::string& action_id) override; |
| 51 void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key) override; | 50 void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key) override; |
| 52 | 51 |
| 53 // Starts network check. Made virtual to simplify mocking. | 52 // Starts network check. Made virtual to simplify mocking. |
| 54 virtual void StartNetworkCheck(); | 53 virtual void StartNetworkCheck(); |
| 55 | 54 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ErrorScreen::ConnectRequestCallbackSubscription connect_request_subscription_; | 186 ErrorScreen::ConnectRequestCallbackSubscription connect_request_subscription_; |
| 188 | 187 |
| 189 base::WeakPtrFactory<UpdateScreen> weak_factory_; | 188 base::WeakPtrFactory<UpdateScreen> weak_factory_; |
| 190 | 189 |
| 191 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 190 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 192 }; | 191 }; |
| 193 | 192 |
| 194 } // namespace chromeos | 193 } // namespace chromeos |
| 195 | 194 |
| 196 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| OLD | NEW |