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 "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 7 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
8 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 8 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
10 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 10 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 232 } |
233 | 233 |
234 views::View* CollectedCookiesViews::GetContentsView() { | 234 views::View* CollectedCookiesViews::GetContentsView() { |
235 return this; | 235 return this; |
236 } | 236 } |
237 | 237 |
238 /////////////////////////////////////////////////////////////////////////////// | 238 /////////////////////////////////////////////////////////////////////////////// |
239 // CollectedCookiesViews, views::ButtonListener implementation: | 239 // CollectedCookiesViews, views::ButtonListener implementation: |
240 | 240 |
241 void CollectedCookiesViews::ButtonPressed(views::Button* sender, | 241 void CollectedCookiesViews::ButtonPressed(views::Button* sender, |
242 const views::Event& event) { | 242 const ui::Event& event) { |
243 if (sender == block_allowed_button_) | 243 if (sender == block_allowed_button_) |
244 AddContentException(allowed_cookies_tree_, CONTENT_SETTING_BLOCK); | 244 AddContentException(allowed_cookies_tree_, CONTENT_SETTING_BLOCK); |
245 else if (sender == allow_blocked_button_) | 245 else if (sender == allow_blocked_button_) |
246 AddContentException(blocked_cookies_tree_, CONTENT_SETTING_ALLOW); | 246 AddContentException(blocked_cookies_tree_, CONTENT_SETTING_ALLOW); |
247 else if (sender == for_session_blocked_button_) | 247 else if (sender == for_session_blocked_button_) |
248 AddContentException(blocked_cookies_tree_, CONTENT_SETTING_SESSION_ONLY); | 248 AddContentException(blocked_cookies_tree_, CONTENT_SETTING_SESSION_ONLY); |
249 } | 249 } |
250 | 250 |
251 /////////////////////////////////////////////////////////////////////////////// | 251 /////////////////////////////////////////////////////////////////////////////// |
252 // CollectedCookiesViews, views::TabbedPaneListener implementation: | 252 // CollectedCookiesViews, views::TabbedPaneListener implementation: |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 /////////////////////////////////////////////////////////////////////////////// | 515 /////////////////////////////////////////////////////////////////////////////// |
516 // CollectedCookiesViews, content::NotificationObserver implementation: | 516 // CollectedCookiesViews, content::NotificationObserver implementation: |
517 | 517 |
518 void CollectedCookiesViews::Observe( | 518 void CollectedCookiesViews::Observe( |
519 int type, | 519 int type, |
520 const content::NotificationSource& source, | 520 const content::NotificationSource& source, |
521 const content::NotificationDetails& details) { | 521 const content::NotificationDetails& details) { |
522 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); | 522 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); |
523 window_->CloseConstrainedWindow(); | 523 window_->CloseConstrainedWindow(); |
524 } | 524 } |
OLD | NEW |