| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PASSWORD_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PASSWORD_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PASSWORD_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PASSWORD_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "views/window/dialog_delegate.h" | 11 #include "views/window/dialog_delegate.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 class Textfield; | 14 class Textfield; |
| 15 class View; | 15 class View; |
| 16 class Window; | 16 class Window; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace chromeos { |
| 20 |
| 19 // Delegate implemented by caller of PasswordDialogView to handle the user | 21 // Delegate implemented by caller of PasswordDialogView to handle the user |
| 20 // interacting with the dialog box. | 22 // interacting with the dialog box. |
| 21 class PasswordDialogDelegate { | 23 class PasswordDialogDelegate { |
| 22 public: | 24 public: |
| 23 // Called when user clicks on cancel button. | 25 // Called when user clicks on cancel button. |
| 24 // Return whether or not to allow password dialog to close. | 26 // Return whether or not to allow password dialog to close. |
| 25 virtual bool OnPasswordDialogCancel() = 0; | 27 virtual bool OnPasswordDialogCancel() = 0; |
| 26 | 28 |
| 27 // Called when user clicks on ok with a password. | 29 // Called when user clicks on ok with a password. |
| 28 // Return whether or not to allow password dialog to close. | 30 // Return whether or not to allow password dialog to close. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 65 |
| 64 // The ssid we are requesting the password for. | 66 // The ssid we are requesting the password for. |
| 65 std::string ssid_; | 67 std::string ssid_; |
| 66 | 68 |
| 67 // Combobox and its corresponding model. | 69 // Combobox and its corresponding model. |
| 68 views::Textfield* password_textfield_; | 70 views::Textfield* password_textfield_; |
| 69 | 71 |
| 70 DISALLOW_COPY_AND_ASSIGN(PasswordDialogView); | 72 DISALLOW_COPY_AND_ASSIGN(PasswordDialogView); |
| 71 }; | 73 }; |
| 72 | 74 |
| 75 } // namespace chromeos |
| 76 |
| 73 #endif // CHROME_BROWSER_CHROMEOS_PASSWORD_DIALOG_VIEW_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_PASSWORD_DIALOG_VIEW_H_ |
| OLD | NEW |