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_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // PermissionSelectorRowObserver implementation. | 110 // PermissionSelectorRowObserver implementation. |
111 void OnPermissionChanged( | 111 void OnPermissionChanged( |
112 const PageInfoUI::PermissionInfo& permission) override; | 112 const PageInfoUI::PermissionInfo& permission) override; |
113 | 113 |
114 // ChosenObjectRowObserver implementation. | 114 // ChosenObjectRowObserver implementation. |
115 void OnChosenObjectDeleted(const PageInfoUI::ChosenObjectInfo& info) override; | 115 void OnChosenObjectDeleted(const PageInfoUI::ChosenObjectInfo& info) override; |
116 | 116 |
117 // views::BubbleDialogDelegateView implementation. | 117 // views::BubbleDialogDelegateView implementation. |
118 base::string16 GetWindowTitle() const override; | 118 base::string16 GetWindowTitle() const override; |
| 119 void AddedToWidget() override; |
119 bool ShouldShowCloseButton() const override; | 120 bool ShouldShowCloseButton() const override; |
120 void OnWidgetDestroying(views::Widget* widget) override; | 121 void OnWidgetDestroying(views::Widget* widget) override; |
121 int GetDialogButtons() const override; | 122 int GetDialogButtons() const override; |
122 const gfx::FontList& GetTitleFontList() const override; | |
123 | 123 |
124 // views::ButtonListener implementation. | 124 // views::ButtonListener implementation. |
125 void ButtonPressed(views::Button* button, const ui::Event& event) override; | 125 void ButtonPressed(views::Button* button, const ui::Event& event) override; |
126 | 126 |
127 // views::LinkListener implementation. | 127 // views::LinkListener implementation. |
128 void LinkClicked(views::Link* source, int event_flags) override; | 128 void LinkClicked(views::Link* source, int event_flags) override; |
129 | 129 |
130 // views::StyledLabelListener implementation. | 130 // views::StyledLabelListener implementation. |
131 void StyledLabelLinkClicked(views::StyledLabel* label, | 131 void StyledLabelLinkClicked(views::StyledLabel* label, |
132 const gfx::Range& range, | 132 const gfx::Range& range, |
(...skipping 18 matching lines...) Expand all Loading... |
151 void HandleLinkClickedAsync(views::Link* source); | 151 void HandleLinkClickedAsync(views::Link* source); |
152 | 152 |
153 // The presenter that controls the Page Info UI. | 153 // The presenter that controls the Page Info UI. |
154 std::unique_ptr<PageInfo> presenter_; | 154 std::unique_ptr<PageInfo> presenter_; |
155 | 155 |
156 Profile* profile_; | 156 Profile* profile_; |
157 | 157 |
158 // The header section (containing security-related information). | 158 // The header section (containing security-related information). |
159 BubbleHeaderView* header_; | 159 BubbleHeaderView* header_; |
160 | 160 |
| 161 // Used by BubbleFrameView as the dialog title. |
| 162 views::Label* title_; |
| 163 |
161 // The security summary for the current page. | 164 // The security summary for the current page. |
162 base::string16 summary_text_; | 165 base::string16 summary_text_; |
163 | 166 |
164 // The separator between the header and the site settings view. | 167 // The separator between the header and the site settings view. |
165 views::Separator* separator_; | 168 views::Separator* separator_; |
166 | 169 |
167 // The view that contains the certificate, cookie, and permissions sections. | 170 // The view that contains the certificate, cookie, and permissions sections. |
168 views::View* site_settings_view_; | 171 views::View* site_settings_view_; |
169 | 172 |
170 // The link that opens the "Cookies" dialog. | 173 // The link that opens the "Cookies" dialog. |
171 views::Link* cookie_dialog_link_; | 174 views::Link* cookie_dialog_link_; |
172 | 175 |
173 // The view that contains the "Permissions" table of the site settings view. | 176 // The view that contains the "Permissions" table of the site settings view. |
174 views::View* permissions_view_; | 177 views::View* permissions_view_; |
175 | 178 |
176 // The certificate provided by the site, if one exists. | 179 // The certificate provided by the site, if one exists. |
177 scoped_refptr<net::X509Certificate> certificate_; | 180 scoped_refptr<net::X509Certificate> certificate_; |
178 | 181 |
179 // These rows bundle together all the |View|s involved in a single row of the | 182 // These rows bundle together all the |View|s involved in a single row of the |
180 // permissions section, and keep those views updated when the underlying | 183 // permissions section, and keep those views updated when the underlying |
181 // |Permission| changes. | 184 // |Permission| changes. |
182 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; | 185 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; |
183 | 186 |
184 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_; | 187 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_; |
185 | 188 |
186 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); | 189 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); |
187 }; | 190 }; |
188 | 191 |
189 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ | 192 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ |
OLD | NEW |