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

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

Issue 11377005: Replace Label::Alignment with gfx::HorizontalAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remaining Label::Alignment references. Created 8 years, 1 month 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 Profile::FromBrowserContext(web_contents_->GetBrowserContext()); 395 Profile::FromBrowserContext(web_contents_->GetBrowserContext());
396 PrefService* prefs = profile->GetPrefs(); 396 PrefService* prefs = profile->GetPrefs();
397 397
398 // Create the controls that go into the pane. 398 // Create the controls that go into the pane.
399 blocked_label_ = new views::Label( 399 blocked_label_ = new views::Label(
400 l10n_util::GetStringUTF16( 400 l10n_util::GetStringUTF16(
401 prefs->GetBoolean(prefs::kBlockThirdPartyCookies) ? 401 prefs->GetBoolean(prefs::kBlockThirdPartyCookies) ?
402 IDS_COLLECTED_COOKIES_BLOCKED_THIRD_PARTY_BLOCKING_ENABLED : 402 IDS_COLLECTED_COOKIES_BLOCKED_THIRD_PARTY_BLOCKING_ENABLED :
403 IDS_COLLECTED_COOKIES_BLOCKED_COOKIES_LABEL)); 403 IDS_COLLECTED_COOKIES_BLOCKED_COOKIES_LABEL));
404 blocked_label_->SetMultiLine(true); 404 blocked_label_->SetMultiLine(true);
405 blocked_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 405 blocked_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
406 const LocalSharedObjectsContainer& blocked_data = 406 const LocalSharedObjectsContainer& blocked_data =
407 content_settings->blocked_local_shared_objects(); 407 content_settings->blocked_local_shared_objects();
408 blocked_cookies_tree_model_ = blocked_data.CreateCookiesTreeModel(); 408 blocked_cookies_tree_model_ = blocked_data.CreateCookiesTreeModel();
409 blocked_cookies_tree_ = new views::TreeView(); 409 blocked_cookies_tree_ = new views::TreeView();
410 blocked_cookies_tree_->SetModel(blocked_cookies_tree_model_.get()); 410 blocked_cookies_tree_->SetModel(blocked_cookies_tree_model_.get());
411 blocked_cookies_tree_->SetRootShown(false); 411 blocked_cookies_tree_->SetRootShown(false);
412 blocked_cookies_tree_->SetEditable(false); 412 blocked_cookies_tree_->SetEditable(false);
413 blocked_cookies_tree_->set_lines_at_root(true); 413 blocked_cookies_tree_->set_lines_at_root(true);
414 blocked_cookies_tree_->set_auto_expand_children(true); 414 blocked_cookies_tree_->set_auto_expand_children(true);
415 blocked_cookies_tree_->SetController(this); 415 blocked_cookies_tree_->SetController(this);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 /////////////////////////////////////////////////////////////////////////////// 520 ///////////////////////////////////////////////////////////////////////////////
521 // CollectedCookiesViews, content::NotificationObserver implementation: 521 // CollectedCookiesViews, content::NotificationObserver implementation:
522 522
523 void CollectedCookiesViews::Observe( 523 void CollectedCookiesViews::Observe(
524 int type, 524 int type,
525 const content::NotificationSource& source, 525 const content::NotificationSource& source,
526 const content::NotificationDetails& details) { 526 const content::NotificationDetails& details) {
527 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type); 527 DCHECK_EQ(chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, type);
528 window_->CloseConstrainedWindow(); 528 window_->CloseConstrainedWindow();
529 } 529 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_prompt_view.cc ('k') | chrome/browser/ui/views/confirm_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698