| 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_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void OnCertSelectedByNotification() OVERRIDE; | 55 virtual void OnCertSelectedByNotification() OVERRIDE; |
| 56 | 56 |
| 57 // DialogDelegateView: | 57 // DialogDelegateView: |
| 58 virtual bool CanResize() const OVERRIDE; | 58 virtual bool CanResize() const OVERRIDE; |
| 59 virtual string16 GetWindowTitle() const OVERRIDE; | 59 virtual string16 GetWindowTitle() const OVERRIDE; |
| 60 virtual void DeleteDelegate() OVERRIDE; | 60 virtual void DeleteDelegate() OVERRIDE; |
| 61 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 61 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 62 virtual bool Cancel() OVERRIDE; | 62 virtual bool Cancel() OVERRIDE; |
| 63 virtual bool Accept() OVERRIDE; | 63 virtual bool Accept() OVERRIDE; |
| 64 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 64 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 65 virtual views::View* GetContentsView() OVERRIDE; | |
| 66 virtual views::View* GetExtraView() OVERRIDE; | 65 virtual views::View* GetExtraView() OVERRIDE; |
| 67 virtual ui::ModalType GetModalType() const OVERRIDE; | 66 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 68 | 67 |
| 69 // views::ButtonListener: | 68 // views::ButtonListener: |
| 70 virtual void ButtonPressed(views::Button* sender, | 69 virtual void ButtonPressed(views::Button* sender, |
| 71 const ui::Event& event) OVERRIDE; | 70 const ui::Event& event) OVERRIDE; |
| 72 | 71 |
| 73 // views::TableViewObserver: | 72 // views::TableViewObserver: |
| 74 virtual void OnSelectionChanged() OVERRIDE; | 73 virtual void OnSelectionChanged() OVERRIDE; |
| 75 virtual void OnDoubleClick() OVERRIDE; | 74 virtual void OnDoubleClick() OVERRIDE; |
| 76 | 75 |
| 77 private: | 76 private: |
| 78 void CreateCertTable(); | 77 void CreateCertTable(); |
| 79 void CreateViewCertButton(); | 78 void CreateViewCertButton(); |
| 80 | 79 |
| 81 scoped_ptr<CertificateSelectorTableModel> model_; | 80 scoped_ptr<CertificateSelectorTableModel> model_; |
| 82 | 81 |
| 83 content::WebContents* web_contents_; | 82 content::WebContents* web_contents_; |
| 84 | 83 |
| 85 ConstrainedWindow* window_; | 84 ConstrainedWindow* window_; |
| 86 views::TableView* table_; | 85 views::TableView* table_; |
| 87 views::TextButton* view_cert_button_; | 86 views::TextButton* view_cert_button_; |
| 88 views::View* view_cert_button_container_; | 87 views::View* view_cert_button_container_; |
| 89 | 88 |
| 90 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); | 89 DISALLOW_COPY_AND_ASSIGN(SSLClientCertificateSelector); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ | 92 #endif // CHROME_BROWSER_UI_VIEWS_SSL_CLIENT_CERTIFICATE_SELECTOR_H_ |
| OLD | NEW |