| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const std::string& slot_name, | 32 const std::string& slot_name, |
| 33 browser::CryptoModulePasswordReason reason, | 33 browser::CryptoModulePasswordReason reason, |
| 34 const std::string& server, | 34 const std::string& server, |
| 35 const base::Callback<void(const char*)>& callback); | 35 const base::Callback<void(const char*)>& callback); |
| 36 | 36 |
| 37 virtual ~CryptoModulePasswordDialogView(); | 37 virtual ~CryptoModulePasswordDialogView(); |
| 38 | 38 |
| 39 // views::DialogDelegate: | 39 // views::DialogDelegate: |
| 40 virtual bool Accept() OVERRIDE; | 40 virtual bool Accept() OVERRIDE; |
| 41 virtual bool Cancel() OVERRIDE; | 41 virtual bool Cancel() OVERRIDE; |
| 42 string16 GetDialogButtonLabel( | 42 virtual string16 GetDialogButtonLabel( |
| 43 ui::DialogButton button) const OVERRIDE; | 43 ui::DialogButton button) const OVERRIDE; |
| 44 | 44 |
| 45 | 45 |
| 46 // views::WidgetDelegate: | 46 // views::WidgetDelegate: |
| 47 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 47 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 48 virtual bool IsModal() const OVERRIDE; | 48 virtual bool IsModal() const OVERRIDE; |
| 49 virtual views::View* GetContentsView() OVERRIDE; | 49 virtual views::View* GetContentsView() OVERRIDE; |
| 50 | 50 |
| 51 // views::View: | 51 // views::View: |
| 52 virtual string16 GetWindowTitle() const OVERRIDE; | 52 virtual string16 GetWindowTitle() const OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 70 | 70 |
| 71 const base::Callback<void(const char*)> callback_; | 71 const base::Callback<void(const char*)> callback_; |
| 72 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept); | 72 FRIEND_TEST_ALL_PREFIXES(CryptoModulePasswordDialogViewTest, TestAccept); |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); | 74 DISALLOW_COPY_AND_ASSIGN(CryptoModulePasswordDialogView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace browser | 77 } // namespace browser |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ | 79 #endif // CHROME_BROWSER_UI_VIEWS_CRYPTO_MODULE_PASSWORD_DIALOG_VIEW_H_ |
| OLD | NEW |