Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/chromeos/login/screens/eula_model.h

Issue 755203002: Added usage of ScreenContext in EulaScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_EULA_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
7
8 #include "chrome/browser/chromeos/login/screens/base_screen.h"
9 #include "url/gurl.h"
10
11 namespace chromeos {
12
13 class BaseScreenDelegate;
14 class EulaView;
15
16 // Allows us to get info from eula screen that we need.
17 class EulaModel : public BaseScreen {
18 public:
19 explicit EulaModel(BaseScreenDelegate* base_screen_delegate);
20 virtual ~EulaModel();
21
22 // Returns URL of the OEM EULA page that should be displayed using current
23 // locale and manifest. Returns empty URL otherwise.
24 virtual GURL GetOemEulaUrl() const = 0;
25
26 // Called when accept button was clicked.
27 virtual void OnAcceptButtonClicked() = 0;
28
29 // Called when back button was clicked.
30 virtual void OnBackButtonClicked() = 0;
31
32 // Initiate TPM password fetch. Will call actor's OnPasswordFetched() when
33 // done.
34 virtual void InitiatePasswordFetch() = 0;
35
36 // Returns true if usage statistics reporting is enabled.
37 virtual bool IsUsageStatsEnabled() const = 0;
38
39 // This method is called, when view is being destroyed. Note, if model
40 // is destroyed earlier then it has to call SetModel(NULL).
41 virtual void OnViewDestroyed(EulaView* view) = 0;
42 };
43
44 } // namespace chromeos
45
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698