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_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "chrome/browser/chromeos/customization_document.h" | 13 #include "chrome/browser/chromeos/customization_document.h" |
13 #include "chrome/browser/chromeos/login/login_display.h" | 14 #include "chrome/browser/chromeos/login/login_display.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 | 16 |
16 namespace views { | 17 namespace views { |
17 class Widget; | 18 class Widget; |
18 } // namespace views | 19 } // namespace views |
19 | 20 |
(...skipping 19 matching lines...) Expand all Loading... | |
39 | 40 |
40 // Returns the current login view. | 41 // Returns the current login view. |
41 virtual WebUILoginView* GetWebUILoginView() const = 0; | 42 virtual WebUILoginView* GetWebUILoginView() const = 0; |
42 | 43 |
43 // Returns corresponding widget. | 44 // Returns corresponding widget. |
44 virtual views::Widget* GetWidget() const = 0; | 45 virtual views::Widget* GetWidget() const = 0; |
45 | 46 |
46 // Called when browsing session starts before creating initial browser. | 47 // Called when browsing session starts before creating initial browser. |
47 virtual void BeforeSessionStart() = 0; | 48 virtual void BeforeSessionStart() = 0; |
48 | 49 |
49 // Called when browsing session starts so | 50 // Called when user enters or returns to browsing session so |
50 // LoginDisplayHost instance may delete itself. | 51 // LoginDisplayHost instance may delete itself. |
51 virtual void OnSessionStart() = 0; | 52 virtual void Finalize() = 0; |
52 | 53 |
53 // Called when a login has completed successfully. | 54 // Called when a login has completed successfully. |
54 virtual void OnCompleteLogin() = 0; | 55 virtual void OnCompleteLogin() = 0; |
55 | 56 |
56 // Open proxy settings dialog. | 57 // Open proxy settings dialog. |
57 virtual void OpenProxySettings() = 0; | 58 virtual void OpenProxySettings() = 0; |
58 | 59 |
59 // Toggles OOBE progress bar visibility, the bar is hidden by default. | 60 // Toggles OOBE progress bar visibility, the bar is hidden by default. |
60 virtual void SetOobeProgressBarVisible(bool visible) = 0; | 61 virtual void SetOobeProgressBarVisible(bool visible) = 0; |
61 | 62 |
(...skipping 12 matching lines...) Expand all Loading... | |
74 // One could specify start screen with |first_screen_name|. | 75 // One could specify start screen with |first_screen_name|. |
75 // Takes ownership of |screen_parameters|, which can also be NULL. | 76 // Takes ownership of |screen_parameters|, which can also be NULL. |
76 virtual void StartWizard( | 77 virtual void StartWizard( |
77 const std::string& first_screen_name, | 78 const std::string& first_screen_name, |
78 scoped_ptr<DictionaryValue> screen_parameters) = 0; | 79 scoped_ptr<DictionaryValue> screen_parameters) = 0; |
79 | 80 |
80 // Returns current WizardController, if it exists. | 81 // Returns current WizardController, if it exists. |
81 // Result should not be stored. | 82 // Result should not be stored. |
82 virtual WizardController* GetWizardController() = 0; | 83 virtual WizardController* GetWizardController() = 0; |
83 | 84 |
85 // Starts screen for adding user into session. | |
Nikita (slow)
2013/05/28 11:34:22
nit: Add comment on |completion_callback|.
dzhioev (left Google)
2013/05/29 13:05:04
Done.
| |
86 virtual void StartUserAdding(const base::Closure& completion_callback) = 0; | |
87 | |
84 // Starts sign in screen. | 88 // Starts sign in screen. |
85 virtual void StartSignInScreen() = 0; | 89 virtual void StartSignInScreen() = 0; |
86 | 90 |
87 // Resumes a previously started sign in screen. | 91 // Resumes a previously started sign in screen. |
88 virtual void ResumeSignInScreen() = 0; | 92 virtual void ResumeSignInScreen() = 0; |
89 | 93 |
90 // Invoked when system preferences that affect the signin screen have changed. | 94 // Invoked when system preferences that affect the signin screen have changed. |
91 virtual void OnPreferencesChanged() = 0; | 95 virtual void OnPreferencesChanged() = 0; |
92 }; | 96 }; |
93 | 97 |
94 } // namespace chromeos | 98 } // namespace chromeos |
95 | 99 |
96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |