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 // Initializes |login_window_| and |login_view_| fields if needed. |
| 78 void InitLoginWindowAndView(); |
| 79 |
| 80 // Closes |login_window_| and resets |login_window_| and |
| 81 // |login_view_| fields. |
| 82 void ResetLoginWindowAndView(); |
| 83 |
77 // Container of the screen we are displaying. | 84 // Container of the screen we are displaying. |
78 views::Widget* login_window_; | 85 views::Widget* login_window_; |
79 | 86 |
80 // Container of the view we are displaying. | 87 // Container of the view we are displaying. |
81 WebUILoginView* login_view_; | 88 WebUILoginView* login_view_; |
82 | 89 |
83 // Login display we are using. | 90 // Login display we are using. |
84 WebUILoginDisplay* webui_login_display_; | 91 WebUILoginDisplay* webui_login_display_; |
85 | 92 |
86 // True if alternate boot animation is enabled. | 93 // True if alternate boot animation is enabled. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 enum { | 127 enum { |
121 RESTORE_UNKNOWN, | 128 RESTORE_UNKNOWN, |
122 RESTORE_WIZARD, | 129 RESTORE_WIZARD, |
123 RESTORE_SIGN_IN | 130 RESTORE_SIGN_IN |
124 } restore_path_; | 131 } restore_path_; |
125 | 132 |
126 // Stored parameters for StartWizard, required to restore in case of crash. | 133 // Stored parameters for StartWizard, required to restore in case of crash. |
127 std::string wizard_first_screen_name_; | 134 std::string wizard_first_screen_name_; |
128 scoped_ptr<DictionaryValue> wizard_screen_parameters_; | 135 scoped_ptr<DictionaryValue> wizard_screen_parameters_; |
129 | 136 |
| 137 // Old value of the ash::internal::kIgnoreSoloWindowFramePainterPolicy |
| 138 // property of the root window for |login_window_|. |
| 139 bool old_ignore_solo_window_frame_painter_policy_value_; |
| 140 |
130 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); | 141 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplayHost); |
131 }; | 142 }; |
132 | 143 |
133 } // namespace chromeos | 144 } // namespace chromeos |
134 | 145 |
135 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ | 146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |