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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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 "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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.h ('k') | chrome/browser/ui/views/confirm_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698