| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_UI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Proceed with Gaia flow because password has changed. | 147 // Proceed with Gaia flow because password has changed. |
| 148 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 148 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
| 149 | 149 |
| 150 // Show password changed dialog. If |show_password_error| is not null | 150 // Show password changed dialog. If |show_password_error| is not null |
| 151 // user already tried to enter old password but it turned out to be incorrect. | 151 // user already tried to enter old password but it turned out to be incorrect. |
| 152 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; | 152 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; |
| 153 | 153 |
| 154 // Shows signin UI with specified email. | 154 // Shows signin UI with specified email. |
| 155 virtual void ShowSigninUI(const std::string& email) = 0; | 155 virtual void ShowSigninUI(const std::string& email) = 0; |
| 156 | 156 |
| 157 // Hides or shows login UI control bar with [Shut down] / [Add user] buttons. | |
| 158 virtual void ShowControlBar(bool show) = 0; | |
| 159 | |
| 160 // Sets the virtual keyboard state. | |
| 161 virtual void SetKeyboardState(bool shown) = 0; | |
| 162 | |
| 163 // Sets the WebUI client area size (based on display dimensions). | |
| 164 virtual void SetClientAreaSize(int width, int height) = 0; | |
| 165 | |
| 166 gfx::Rect background_bounds() const { return background_bounds_; } | 157 gfx::Rect background_bounds() const { return background_bounds_; } |
| 167 void set_background_bounds(const gfx::Rect& background_bounds) { | 158 void set_background_bounds(const gfx::Rect& background_bounds) { |
| 168 background_bounds_ = background_bounds; | 159 background_bounds_ = background_bounds; |
| 169 } | 160 } |
| 170 | 161 |
| 171 Delegate* delegate() { return delegate_; } | 162 Delegate* delegate() { return delegate_; } |
| 172 void set_delegate(Delegate* delegate) { delegate_ = delegate; } | 163 void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
| 173 | 164 |
| 174 gfx::NativeWindow parent_window() const { return parent_window_; } | 165 gfx::NativeWindow parent_window() const { return parent_window_; } |
| 175 void set_parent_window(gfx::NativeWindow window) { parent_window_ = window; } | 166 void set_parent_window(gfx::NativeWindow window) { parent_window_ = window; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 194 // in redesigned login stack. | 185 // in redesigned login stack. |
| 195 // Login stack (and this object) will be recreated for next user sign in. | 186 // Login stack (and this object) will be recreated for next user sign in. |
| 196 bool is_signin_completed_; | 187 bool is_signin_completed_; |
| 197 | 188 |
| 198 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 189 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 199 }; | 190 }; |
| 200 | 191 |
| 201 } // namespace chromeos | 192 } // namespace chromeos |
| 202 | 193 |
| 203 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |