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

Side by Side Diff: chrome/browser/ui/views/collected_cookies_views.cc

Issue 2375843003: views: add Harmony dialog width support (Closed)
Patch Set: GetPreferredSize -> DialogClientView Created 4 years, 2 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 #include "chrome/browser/ui/views/collected_cookies_views.h" 5 #include "chrome/browser/ui/views/collected_cookies_views.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" 8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
9 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 delete_allowed_button_(NULL), 184 delete_allowed_button_(NULL),
185 allow_blocked_button_(NULL), 185 allow_blocked_button_(NULL),
186 for_session_blocked_button_(NULL), 186 for_session_blocked_button_(NULL),
187 cookie_info_view_(NULL), 187 cookie_info_view_(NULL),
188 infobar_(NULL), 188 infobar_(NULL),
189 status_changed_(false) { 189 status_changed_(false) {
190 TabSpecificContentSettings* content_settings = 190 TabSpecificContentSettings* content_settings =
191 TabSpecificContentSettings::FromWebContents(web_contents); 191 TabSpecificContentSettings::FromWebContents(web_contents);
192 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, 192 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
193 content::Source<TabSpecificContentSettings>(content_settings)); 193 content::Source<TabSpecificContentSettings>(content_settings));
194 set_dialog_width(DialogWidth::MEDIUM);
194 constrained_window::ShowWebModalDialogViews(this, web_contents); 195 constrained_window::ShowWebModalDialogViews(this, web_contents);
195 } 196 }
196 197
197 /////////////////////////////////////////////////////////////////////////////// 198 ///////////////////////////////////////////////////////////////////////////////
198 // CollectedCookiesViews, views::DialogDelegate implementation: 199 // CollectedCookiesViews, views::DialogDelegate implementation:
199 200
200 base::string16 CollectedCookiesViews::GetWindowTitle() const { 201 base::string16 CollectedCookiesViews::GetWindowTitle() const {
201 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE); 202 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE);
202 } 203 }
203 204
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 /////////////////////////////////////////////////////////////////////////////// 536 ///////////////////////////////////////////////////////////////////////////////
536 // CollectedCookiesViews, content::NotificationObserver implementation: 537 // CollectedCookiesViews, content::NotificationObserver implementation:
537 538
538 void CollectedCookiesViews::Observe( 539 void CollectedCookiesViews::Observe(
539 int type, 540 int type,
540 const content::NotificationSource& source, 541 const content::NotificationSource& source,
541 const content::NotificationDetails& details) { 542 const content::NotificationDetails& details) {
542 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); 543 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type);
543 GetWidget()->Close(); 544 GetWidget()->Close();
544 } 545 }
OLDNEW
« no previous file with comments | « no previous file | ui/views/window/dialog_client_view.cc » ('j') | ui/views/window/dialog_client_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698