| 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 #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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |