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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_
8 #include "chrome/browser/chromeos/login/screens/base_screen.h"
16 class BaseScreenDelegate
;
19 class NetworkModel
: public BaseScreen
{
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
[];
28 explicit NetworkModel(BaseScreenDelegate
* base_screen_delegate
);
29 ~NetworkModel() override
;
31 // BaseScreen implementation:
32 std::string
GetName() const override
;
34 // This method is called, when view is being destroyed. Note, if model
35 // is destroyed earlier then it has to call Unbind().
36 virtual void OnViewDestroyed(NetworkView
* view
) = 0;
38 virtual std::string
GetLanguageListLocale() const = 0;
40 virtual const base::ListValue
* GetLanguageList() const = 0;
42 virtual void UpdateLanguageList() = 0;
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_MODEL_H_