| 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 26 matching lines...) Expand all Loading... |
| 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 Show() override; | 45 void Show() override; |
| 46 void Hide() override; | 46 void Hide() override; |
| 47 void Initialize(::login::ScreenContext* context) override; | |
| 48 void OnViewDestroyed(UpdateView* view) override; | 47 void OnViewDestroyed(UpdateView* view) override; |
| 49 void OnUserAction(const std::string& action_id) override; | 48 void OnUserAction(const std::string& action_id) override; |
| 50 void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key) override; | 49 void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key) override; |
| 51 | 50 |
| 52 // Starts network check. Made virtual to simplify mocking. | 51 // Starts network check. Made virtual to simplify mocking. |
| 53 virtual void StartNetworkCheck(); | 52 virtual void StartNetworkCheck(); |
| 54 | 53 |
| 55 // Returns true if this instance is still active (i.e. has not been deleted). | 54 // Returns true if this instance is still active (i.e. has not been deleted). |
| 56 static bool HasInstance(UpdateScreen* inst); | 55 static bool HasInstance(UpdateScreen* inst); |
| 57 | 56 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 ErrorScreen::ConnectRequestCallbackSubscription connect_request_subscription_; | 185 ErrorScreen::ConnectRequestCallbackSubscription connect_request_subscription_; |
| 187 | 186 |
| 188 base::WeakPtrFactory<UpdateScreen> weak_factory_; | 187 base::WeakPtrFactory<UpdateScreen> weak_factory_; |
| 189 | 188 |
| 190 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 189 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 } // namespace chromeos | 192 } // namespace chromeos |
| 194 | 193 |
| 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| OLD | NEW |