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

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

Issue 2375843003: views: add Harmony dialog width support (Closed)
Patch Set: remove GetDialogWidth 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
« no previous file with comments | « no previous file | ui/views/window/dialog_delegate.h » ('j') | ui/views/window/dialog_delegate.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 delete_allowed_button_(NULL), 183 delete_allowed_button_(NULL),
184 allow_blocked_button_(NULL), 184 allow_blocked_button_(NULL),
185 for_session_blocked_button_(NULL), 185 for_session_blocked_button_(NULL),
186 cookie_info_view_(NULL), 186 cookie_info_view_(NULL),
187 infobar_(NULL), 187 infobar_(NULL),
188 status_changed_(false) { 188 status_changed_(false) {
189 TabSpecificContentSettings* content_settings = 189 TabSpecificContentSettings* content_settings =
190 TabSpecificContentSettings::FromWebContents(web_contents); 190 TabSpecificContentSettings::FromWebContents(web_contents);
191 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, 191 registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
192 content::Source<TabSpecificContentSettings>(content_settings)); 192 content::Source<TabSpecificContentSettings>(content_settings));
193 set_dialog_width(DIALOG_WIDTH_MEDIUM);
193 constrained_window::ShowWebModalDialogViews(this, web_contents); 194 constrained_window::ShowWebModalDialogViews(this, web_contents);
194 } 195 }
195 196
196 /////////////////////////////////////////////////////////////////////////////// 197 ///////////////////////////////////////////////////////////////////////////////
197 // CollectedCookiesViews, views::DialogDelegate implementation: 198 // CollectedCookiesViews, views::DialogDelegate implementation:
198 199
199 base::string16 CollectedCookiesViews::GetWindowTitle() const { 200 base::string16 CollectedCookiesViews::GetWindowTitle() const {
200 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE); 201 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_DIALOG_TITLE);
201 } 202 }
202 203
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 /////////////////////////////////////////////////////////////////////////////// 535 ///////////////////////////////////////////////////////////////////////////////
535 // CollectedCookiesViews, content::NotificationObserver implementation: 536 // CollectedCookiesViews, content::NotificationObserver implementation:
536 537
537 void CollectedCookiesViews::Observe( 538 void CollectedCookiesViews::Observe(
538 int type, 539 int type,
539 const content::NotificationSource& source, 540 const content::NotificationSource& source,
540 const content::NotificationDetails& details) { 541 const content::NotificationDetails& details) {
541 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); 542 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type);
542 GetWidget()->Close(); 543 GetWidget()->Close();
543 } 544 }
OLDNEW
« no previous file with comments | « no previous file | ui/views/window/dialog_delegate.h » ('j') | ui/views/window/dialog_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698