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

Side by Side Diff: chrome/browser/chromeos/login/login_display_host.h

Issue 16002004: Added login screen mode for adding users into session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebUI test fixed. Created 7 years, 6 months 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
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
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
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.
86 // |completion_callback| called before display host shutdown.
87 // |completion_callback| can be null.
88 virtual void StartUserAdding(const base::Closure& completion_callback) = 0;
89
84 // Starts sign in screen. 90 // Starts sign in screen.
85 virtual void StartSignInScreen() = 0; 91 virtual void StartSignInScreen() = 0;
86 92
87 // Resumes a previously started sign in screen. 93 // Resumes a previously started sign in screen.
88 virtual void ResumeSignInScreen() = 0; 94 virtual void ResumeSignInScreen() = 0;
89 95
90 // Invoked when system preferences that affect the signin screen have changed. 96 // Invoked when system preferences that affect the signin screen have changed.
91 virtual void OnPreferencesChanged() = 0; 97 virtual void OnPreferencesChanged() = 0;
92 }; 98 };
93 99
94 } // namespace chromeos 100 } // namespace chromeos
95 101
96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_ 102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc ('k') | chrome/browser/chromeos/login/login_display_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698