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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 8 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_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_POPUP_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void ButtonPressed(views::Button* button, const ui::Event& event) override; 117 void ButtonPressed(views::Button* button, const ui::Event& event) override;
118 118
119 // views::LinkListener implementation. 119 // views::LinkListener implementation.
120 void LinkClicked(views::Link* source, int event_flags) override; 120 void LinkClicked(views::Link* source, int event_flags) override;
121 121
122 // views::StyledLabelListener implementation. 122 // views::StyledLabelListener implementation.
123 void StyledLabelLinkClicked(views::StyledLabel* label, 123 void StyledLabelLinkClicked(views::StyledLabel* label,
124 const gfx::Range& range, 124 const gfx::Range& range,
125 int event_flags) override; 125 int event_flags) override;
126 126
127 // views::View implementation. 127 // views::DialogDelegateView implementation.
128 gfx::Size GetPreferredSize() const override; 128 gfx::Size GetUnsnappedPreferredSize() const override;
129 129
130 // PageInfoUI implementations. 130 // PageInfoUI implementations.
131 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; 131 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
132 void SetPermissionInfo(const PermissionInfoList& permission_info_list, 132 void SetPermissionInfo(const PermissionInfoList& permission_info_list,
133 ChosenObjectInfoList chosen_object_info_list) override; 133 ChosenObjectInfoList chosen_object_info_list) override;
134 void SetIdentityInfo(const IdentityInfo& identity_info) override; 134 void SetIdentityInfo(const IdentityInfo& identity_info) override;
135 135
136 // Creates the contents of the |site_settings_view_|. The ownership of the 136 // Creates the contents of the |site_settings_view_|. The ownership of the
137 // returned view is transferred to the caller. 137 // returned view is transferred to the caller.
138 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; 138 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // permissions section, and keep those views updated when the underlying 176 // permissions section, and keep those views updated when the underlying
177 // |Permission| changes. 177 // |Permission| changes.
178 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; 178 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_;
179 179
180 base::WeakPtrFactory<PageInfoPopupView> weak_factory_; 180 base::WeakPtrFactory<PageInfoPopupView> weak_factory_;
181 181
182 DISALLOW_COPY_AND_ASSIGN(PageInfoPopupView); 182 DISALLOW_COPY_AND_ASSIGN(PageInfoPopupView);
183 }; 183 };
184 184
185 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_POPUP_VIEW_H_ 185 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_POPUP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698