Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/ui/views/page_info/page_info_bubble_view.h

Issue 2846913002: Add a Certificate Viewer link to the Page Info dropdown (Closed)
Patch Set: Fix merge conflict Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/ui/page_info/page_info_ui.h" 14 #include "chrome/browser/ui/page_info/page_info_ui.h"
14 #include "chrome/browser/ui/views/page_info/chosen_object_row_observer.h" 15 #include "chrome/browser/ui/views/page_info/chosen_object_row_observer.h"
15 #include "chrome/browser/ui/views/page_info/permission_selector_row.h" 16 #include "chrome/browser/ui/views/page_info/permission_selector_row.h"
16 #include "chrome/browser/ui/views/page_info/permission_selector_row_observer.h" 17 #include "chrome/browser/ui/views/page_info/permission_selector_row_observer.h"
17 #include "content/public/browser/web_contents_observer.h" 18 #include "content/public/browser/web_contents_observer.h"
18 #include "ui/views/bubble/bubble_dialog_delegate.h" 19 #include "ui/views/bubble/bubble_dialog_delegate.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 // Creates the contents of the |site_settings_view_|. The ownership of the 137 // Creates the contents of the |site_settings_view_|. The ownership of the
137 // returned view is transferred to the caller. 138 // returned view is transferred to the caller.
138 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; 139 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT;
139 140
140 // Used to asynchronously handle clicks since these calls may cause the 141 // Used to asynchronously handle clicks since these calls may cause the
141 // destruction of the settings view and the base class window still needs to 142 // destruction of the settings view and the base class window still needs to
142 // be alive to finish handling the mouse or keyboard click. 143 // be alive to finish handling the mouse or keyboard click.
143 void HandleLinkClickedAsync(views::Link* source); 144 void HandleLinkClickedAsync(views::Link* source);
144 145
145 // Whether DevTools is disabled for the relevant profile.
146 bool is_devtools_disabled_;
147
148 // The presenter that controls the Page Info UI. 146 // The presenter that controls the Page Info UI.
149 std::unique_ptr<PageInfo> presenter_; 147 std::unique_ptr<PageInfo> presenter_;
150 148
151 Profile* profile_; 149 Profile* profile_;
152 150
153 // The header section (containing security-related information). 151 // The header section (containing security-related information).
154 BubbleHeaderView* header_; 152 BubbleHeaderView* header_;
155 153
156 // The security summary for the current page. 154 // The security summary for the current page.
157 base::string16 summary_text_; 155 base::string16 summary_text_;
158 156
159 // The separator between the header and the site settings view. 157 // The separator between the header and the site settings view.
160 views::Separator* separator_; 158 views::Separator* separator_;
161 159
162 // The view that contains the cookie and permissions sections. 160 // The view that contains the certificate, cookie, and permissions sections.
163 views::View* site_settings_view_; 161 views::View* site_settings_view_;
164 // The view that contains the contents of the "Cookies" part of the site 162
165 // settings view.
166 views::View* cookies_view_;
167 // The link that opens the "Cookies" dialog. 163 // The link that opens the "Cookies" dialog.
168 views::Link* cookie_dialog_link_; 164 views::Link* cookie_dialog_link_;
165
169 // The view that contains the "Permissions" table of the site settings view. 166 // The view that contains the "Permissions" table of the site settings view.
170 views::View* permissions_view_; 167 views::View* permissions_view_;
171 168
172 // The certificate provided by the site, if one exists. 169 // The certificate provided by the site, if one exists.
173 scoped_refptr<net::X509Certificate> certificate_; 170 scoped_refptr<net::X509Certificate> certificate_;
174 171
175 // These rows bundle together all the |View|s involved in a single row of the 172 // These rows bundle together all the |View|s involved in a single row of the
176 // permissions section, and keep those views updated when the underlying 173 // permissions section, and keep those views updated when the underlying
177 // |Permission| changes. 174 // |Permission| changes.
178 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; 175 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_;
179 176
180 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_; 177 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_;
181 178
182 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); 179 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
183 }; 180 };
184 181
185 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 182 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/page_info/page_info_ui.cc ('k') | chrome/browser/ui/views/page_info/page_info_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698