| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_ | |
| 7 | |
| 8 #include "chrome/browser/chromeos/login/screens/base_screen.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class ListValue; | |
| 12 } | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 class BaseScreenDelegate; | |
| 17 class NetworkView; | |
| 18 | |
| 19 class NetworkModel : public BaseScreen { | |
| 20 public: | |
| 21 static const char kUserActionContinueButtonClicked[]; | |
| 22 static const char kUserActionConnectDebuggingFeaturesClicked[]; | |
| 23 static const char kContextKeyLocale[]; | |
| 24 static const char kContextKeyInputMethod[]; | |
| 25 static const char kContextKeyTimezone[]; | |
| 26 static const char kContextKeyContinueButtonEnabled[]; | |
| 27 | |
| 28 explicit NetworkModel(BaseScreenDelegate* base_screen_delegate); | |
| 29 ~NetworkModel() override; | |
| 30 | |
| 31 // This method is called, when view is being destroyed. Note, if model | |
| 32 // is destroyed earlier then it has to call Unbind(). | |
| 33 virtual void OnViewDestroyed(NetworkView* view) = 0; | |
| 34 | |
| 35 virtual std::string GetLanguageListLocale() const = 0; | |
| 36 | |
| 37 virtual const base::ListValue* GetLanguageList() const = 0; | |
| 38 | |
| 39 virtual void UpdateLanguageList() = 0; | |
| 40 }; | |
| 41 | |
| 42 } // namespace chromeos | |
| 43 | |
| 44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_ | |
| OLD | NEW |