| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Show password changed dialog. If |show_password_error| is not null | 161 // Show password changed dialog. If |show_password_error| is not null |
| 162 // user already tried to enter old password but it turned out to be incorrect. | 162 // user already tried to enter old password but it turned out to be incorrect. |
| 163 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; | 163 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; |
| 164 | 164 |
| 165 // Shows signin UI with specified email. | 165 // Shows signin UI with specified email. |
| 166 virtual void ShowSigninUI(const std::string& email) = 0; | 166 virtual void ShowSigninUI(const std::string& email) = 0; |
| 167 | 167 |
| 168 // Hides or shows login UI control bar with [Shut down] / [Add user] buttons. | 168 // Hides or shows login UI control bar with [Shut down] / [Add user] buttons. |
| 169 virtual void ShowControlBar(bool show) = 0; | 169 virtual void ShowControlBar(bool show) = 0; |
| 170 | 170 |
| 171 // Sets the virtual keyboard state. |
| 172 virtual void SetKeyboardState(bool shown) = 0; |
| 173 |
| 171 gfx::Rect background_bounds() const { return background_bounds_; } | 174 gfx::Rect background_bounds() const { return background_bounds_; } |
| 172 void set_background_bounds(const gfx::Rect& background_bounds) { | 175 void set_background_bounds(const gfx::Rect& background_bounds) { |
| 173 background_bounds_ = background_bounds; | 176 background_bounds_ = background_bounds; |
| 174 } | 177 } |
| 175 | 178 |
| 176 Delegate* delegate() { return delegate_; } | 179 Delegate* delegate() { return delegate_; } |
| 177 void set_delegate(Delegate* delegate) { delegate_ = delegate; } | 180 void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
| 178 | 181 |
| 179 gfx::NativeWindow parent_window() const { return parent_window_; } | 182 gfx::NativeWindow parent_window() const { return parent_window_; } |
| 180 void set_parent_window(gfx::NativeWindow window) { parent_window_ = window; } | 183 void set_parent_window(gfx::NativeWindow window) { parent_window_ = window; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 199 // in redesigned login stack. | 202 // in redesigned login stack. |
| 200 // Login stack (and this object) will be recreated for next user sign in. | 203 // Login stack (and this object) will be recreated for next user sign in. |
| 201 bool is_signin_completed_; | 204 bool is_signin_completed_; |
| 202 | 205 |
| 203 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 206 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 204 }; | 207 }; |
| 205 | 208 |
| 206 } // namespace chromeos | 209 } // namespace chromeos |
| 207 | 210 |
| 208 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |