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_WEBUI_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 // Loads given URL. Creates WebUILoginView if needed. | 67 // Loads given URL. Creates WebUILoginView if needed. |
68 void LoadURL(const GURL& url); | 68 void LoadURL(const GURL& url); |
69 | 69 |
70 // Shows OOBE/sign in WebUI that was previously initialized in hidden state. | 70 // Shows OOBE/sign in WebUI that was previously initialized in hidden state. |
71 void ShowWebUI(); | 71 void ShowWebUI(); |
72 | 72 |
73 // Starts postponed WebUI (OOBE/sign in) if it was waiting for | 73 // Starts postponed WebUI (OOBE/sign in) if it was waiting for |
74 // wallpaper animation end. | 74 // wallpaper animation end. |
75 void StartPostponedWebUI(); | 75 void StartPostponedWebUI(); |
76 | 76 |
77 void InitLoginWindowAndView(); | |
Daniel Erat
2012/12/27 17:44:45
nit: add comments describing what these do
ygorshenin1
2012/12/28 07:46:56
Done.
| |
78 | |
79 void ResetLoginWindowAndView(); | |
80 | |
77 // Container of the screen we are displaying. | 81 // Container of the screen we are displaying. |
78 views::Widget* login_window_; | 82 views::Widget* login_window_; |
79 | 83 |
80 // Container of the view we are displaying. | 84 // Container of the view we are displaying. |
81 WebUILoginView* login_view_; | 85 WebUILoginView* login_view_; |
82 | 86 |
83 // Login display we are using. | 87 // Login display we are using. |
84 WebUILoginDisplay* webui_login_display_; | 88 WebUILoginDisplay* webui_login_display_; |
85 | 89 |
86 // True if alternate boot animation is enabled. | 90 // True if alternate boot animation is enabled. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 enum { | 124 enum { |
121 RESTORE_UNKNOWN, | 125 RESTORE_UNKNOWN, |
122 RESTORE_WIZARD, | 126 RESTORE_WIZARD, |
123 RESTORE_SIGN_IN | 127 RESTORE_SIGN_IN |
124 } restore_path_; | 128 } restore_path_; |
125 | 129 |
126 // Stored parameters for StartWizard, required to restore in case of crash. | 130 // Stored parameters for StartWizard, required to restore in case of crash. |
127 std::string wizard_first_screen_name_; | 131 std::string wizard_first_screen_name_; |
128 scoped_ptr<DictionaryValue> wizard_screen_parameters_; | 132 scoped_ptr<DictionaryValue> wizard_screen_parameters_; |
129 | 133 |
134 // Old value of the ash::internal::kIgnoreSoloWindowPolicy | |
135 // property of the root window for |login_window_|. | |
136 bool old_ignore_solo_window_policy_value_; | |
137 | |
130 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 138 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
131 }; | 139 }; |
132 | 140 |
133 } // namespace chromeos | 141 } // namespace chromeos |
134 | 142 |
135 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |