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_COOKIE_INFO_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // Enables or disables the cookie property text fields. | 46 // Enables or disables the cookie property text fields. |
47 void EnableCookieDisplay(bool enabled); | 47 void EnableCookieDisplay(bool enabled); |
48 | 48 |
49 protected: | 49 protected: |
50 // views::View: | 50 // views::View: |
51 virtual void ViewHierarchyChanged( | 51 virtual void ViewHierarchyChanged( |
52 const ViewHierarchyChangedDetails& details) OVERRIDE; | 52 const ViewHierarchyChangedDetails& details) OVERRIDE; |
53 | 53 |
54 private: | 54 private: |
55 // Layout helper routines. | 55 // Layout helper routines. |
56 void AddLabelRow(int layout_id, views::GridLayout* layout, | 56 void AddLabelRow(int layout_id, |
57 views::Label* label, views::Textfield* value); | 57 views::GridLayout* layout, |
| 58 views::Label* label, |
| 59 views::Textfield* textfield); |
58 | 60 |
59 // Sets up the view layout. | 61 // Sets up the view layout. |
60 void Init(); | 62 void Init(); |
61 | 63 |
62 // Individual property labels | 64 // Individual property labels |
63 views::Label* name_label_; | 65 views::Label* name_label_; |
64 views::Textfield* name_value_field_; | 66 views::Textfield* name_value_field_; |
65 views::Label* content_label_; | 67 views::Label* content_label_; |
66 views::Textfield* content_value_field_; | 68 views::Textfield* content_value_field_; |
67 views::Label* domain_label_; | 69 views::Label* domain_label_; |
68 views::Textfield* domain_value_field_; | 70 views::Textfield* domain_value_field_; |
69 views::Label* path_label_; | 71 views::Label* path_label_; |
70 views::Textfield* path_value_field_; | 72 views::Textfield* path_value_field_; |
71 views::Label* send_for_label_; | 73 views::Label* send_for_label_; |
72 views::Textfield* send_for_value_field_; | 74 views::Textfield* send_for_value_field_; |
73 views::Label* created_label_; | 75 views::Label* created_label_; |
74 views::Textfield* created_value_field_; | 76 views::Textfield* created_value_field_; |
75 views::Label* expires_label_; | 77 views::Label* expires_label_; |
76 views::Textfield* expires_value_field_; | 78 views::Textfield* expires_value_field_; |
77 | 79 |
78 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); | 80 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); |
79 }; | 81 }; |
80 | 82 |
81 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ | 83 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ |
OLD | NEW |