| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "net/cert/sct_status_flags.h" | 10 #include "net/cert/sct_status_flags.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void SetSignedCertificateTimestamp( | 42 void SetSignedCertificateTimestamp( |
| 43 const net::ct::SignedCertificateTimestamp& sct, | 43 const net::ct::SignedCertificateTimestamp& sct, |
| 44 net::ct::SCTVerifyStatus status); | 44 net::ct::SCTVerifyStatus status); |
| 45 | 45 |
| 46 // Clears the SCT display to indicate that no SCT is selected. | 46 // Clears the SCT display to indicate that no SCT is selected. |
| 47 void ClearDisplay(); | 47 void ClearDisplay(); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // views::View implementation | 50 // views::View implementation |
| 51 virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) | 51 virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) |
| 52 OVERRIDE; | 52 override; |
| 53 | 53 |
| 54 // Layout helper routines. | 54 // Layout helper routines. |
| 55 void AddLabelRow(int layout_id, | 55 void AddLabelRow(int layout_id, |
| 56 views::GridLayout* layout, | 56 views::GridLayout* layout, |
| 57 int label_message_id, | 57 int label_message_id, |
| 58 views::Label* data_label); | 58 views::Label* data_label); |
| 59 | 59 |
| 60 // Sets up the view layout. | 60 // Sets up the view layout. |
| 61 void Init(); | 61 void Init(); |
| 62 | 62 |
| 63 // Individual property labels | 63 // Individual property labels |
| 64 views::Label* status_value_field_; | 64 views::Label* status_value_field_; |
| 65 views::Label* origin_value_field_; | 65 views::Label* origin_value_field_; |
| 66 views::Label* version_value_field_; | 66 views::Label* version_value_field_; |
| 67 views::Label* log_description_value_field_; | 67 views::Label* log_description_value_field_; |
| 68 views::Label* log_id_value_field_; | 68 views::Label* log_id_value_field_; |
| 69 views::Label* timestamp_value_field_; | 69 views::Label* timestamp_value_field_; |
| 70 views::Label* hash_algorithm_value_field_; | 70 views::Label* hash_algorithm_value_field_; |
| 71 views::Label* signature_algorithm_value_field_; | 71 views::Label* signature_algorithm_value_field_; |
| 72 views::Label* signature_data_value_field_; | 72 views::Label* signature_data_value_field_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampInfoView); | 74 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampInfoView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_ |
| OLD | NEW |