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_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // views::DialogDelegate: | 42 // views::DialogDelegate: |
43 virtual string16 GetDialogButtonLabel( | 43 virtual string16 GetDialogButtonLabel( |
44 ui::DialogButton button) const OVERRIDE; | 44 ui::DialogButton button) const OVERRIDE; |
45 virtual bool Cancel() OVERRIDE; | 45 virtual bool Cancel() OVERRIDE; |
46 virtual bool Accept() OVERRIDE; | 46 virtual bool Accept() OVERRIDE; |
47 | 47 |
48 // views::TextfieldController: | 48 // views::TextfieldController: |
49 virtual void ContentsChanged(views::Textfield* sender, | 49 virtual void ContentsChanged(views::Textfield* sender, |
50 const string16& new_contents) OVERRIDE; | 50 const string16& new_contents) OVERRIDE; |
51 virtual bool HandleKeyEvent(views::Textfield* sender, | 51 virtual bool HandleKeyEvent(views::Textfield* sender, |
52 const views::KeyEvent& keystroke) OVERRIDE; | 52 const ui::KeyEvent& keystroke) OVERRIDE; |
53 | 53 |
54 // Initialize views and layout. | 54 // Initialize views and layout. |
55 void Init(const std::string& server, | 55 void Init(const std::string& server, |
56 const std::string& slot_name, | 56 const std::string& slot_name, |
57 browser::CryptoModulePasswordReason reason); | 57 browser::CryptoModulePasswordReason reason); |
58 | 58 |
59 views::Label* title_label_; | 59 views::Label* title_label_; |
60 views::Label* reason_label_; | 60 views::Label* reason_label_; |
61 views::Label* password_label_; | 61 views::Label* password_label_; |
62 views::Textfield* password_entry_; | 62 views::Textfield* password_entry_; |
63 | 63 |
64 const CryptoModulePasswordCallback callback_; | 64 const CryptoModulePasswordCallback callback_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); | 66 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace browser | 69 } // namespace browser |
70 | 70 |
71 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ | 71 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ |
OLD | NEW |