| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 virtual ~CryptoModulePasswordDialogView(); | 31 virtual ~CryptoModulePasswordDialogView(); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept); | 34 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept); |
| 35 | 35 |
| 36 // views::WidgetDelegate: | 36 // views::WidgetDelegate: |
| 37 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 37 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 38 virtual ui::ModalType GetModalType() const OVERRIDE; | 38 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 39 virtual string16 GetWindowTitle() const OVERRIDE; | 39 virtual string16 GetWindowTitle() const OVERRIDE; |
| 40 virtual views::View* GetContentsView() OVERRIDE; | |
| 41 | 40 |
| 42 // views::DialogDelegate: | 41 // views::DialogDelegate: |
| 43 virtual string16 GetDialogButtonLabel( | 42 virtual string16 GetDialogButtonLabel( |
| 44 ui::DialogButton button) const OVERRIDE; | 43 ui::DialogButton button) const OVERRIDE; |
| 45 virtual bool Cancel() OVERRIDE; | 44 virtual bool Cancel() OVERRIDE; |
| 46 virtual bool Accept() OVERRIDE; | 45 virtual bool Accept() OVERRIDE; |
| 47 | 46 |
| 48 // views::TextfieldController: | 47 // views::TextfieldController: |
| 49 virtual void ContentsChanged(views::Textfield* sender, | 48 virtual void ContentsChanged(views::Textfield* sender, |
| 50 const string16& new_contents) OVERRIDE; | 49 const string16& new_contents) OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 views::Textfield* password_entry_; | 61 views::Textfield* password_entry_; |
| 63 | 62 |
| 64 const CryptoModulePasswordCallback callback_; | 63 const CryptoModulePasswordCallback callback_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); | 65 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace chrome | 68 } // namespace chrome |
| 70 | 69 |
| 71 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ |
| OLD | NEW |