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

Side by Side Diff: chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc

Issue 10832367: (Gtk only) Remove the "Manage permission settings" link from the Website Settings UI. (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
« no previous file with comments | « chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h ('k') | no next file » | no next file with comments »
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/gtk/website_settings/website_settings_popup_gtk.h" 5 #include "chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/certificate_viewer.h" 10 #include "chrome/browser/certificate_viewer.h"
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 permission->type, 485 permission->type,
486 permission->setting, 486 permission->setting,
487 permission->default_setting); 487 permission->default_setting);
488 selector->AddObserver(this); 488 selector->AddObserver(this);
489 GtkWidget* hbox = selector->CreateUI(); 489 GtkWidget* hbox = selector->CreateUI();
490 selectors_.push_back(selector); 490 selectors_.push_back(selector);
491 gtk_box_pack_start(GTK_BOX(permissions_section_contents_), hbox, FALSE, 491 gtk_box_pack_start(GTK_BOX(permissions_section_contents_), hbox, FALSE,
492 FALSE, 0); 492 FALSE, 0);
493 } 493 }
494 494
495 GtkWidget* show_content_settings_link = theme_service_->BuildChromeLinkButton(
496 l10n_util::GetStringUTF8(IDS_WEBSITE_SETTINGS_SHOW_PERMISSION_SETTINGS));
497 g_signal_connect(show_content_settings_link, "clicked",
498 G_CALLBACK(OnPermissionsSettingsLinkClickedThunk), this);
499 GtkWidget* link_hbox = gtk_hbox_new(FALSE, 0);
500 gtk_box_pack_start(GTK_BOX(link_hbox), show_content_settings_link,
501 FALSE, FALSE, 0);
502
503 gtk_box_pack_start(GTK_BOX(permissions_section_contents_), link_hbox,
504 FALSE, FALSE, 0);
505
506 gtk_widget_show_all(permissions_section_contents_); 495 gtk_widget_show_all(permissions_section_contents_);
507 } 496 }
508 497
509 void WebsiteSettingsPopupGtk::OnCookiesLinkClicked(GtkWidget* widget) { 498 void WebsiteSettingsPopupGtk::OnCookiesLinkClicked(GtkWidget* widget) {
510 new CollectedCookiesGtk(GTK_WINDOW(parent_), 499 new CollectedCookiesGtk(GTK_WINDOW(parent_),
511 tab_contents_); 500 tab_contents_);
512 bubble_->Close(); 501 bubble_->Close();
513 } 502 }
514 503
515 void WebsiteSettingsPopupGtk::OnPermissionsSettingsLinkClicked(
516 GtkWidget* widget) {
517 browser_->OpenURL(OpenURLParams(
518 GURL(std::string(
519 chrome::kChromeUISettingsURL) + chrome::kContentSettingsSubPage),
520 content::Referrer(),
521 NEW_FOREGROUND_TAB,
522 content::PAGE_TRANSITION_LINK,
523 false));
524 bubble_->Close();
525 }
526
527 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { 504 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) {
528 DCHECK_NE(cert_id_, 0); 505 DCHECK_NE(cert_id_, 0);
529 ShowCertificateViewerByID( 506 ShowCertificateViewerByID(
530 tab_contents_->web_contents(), GTK_WINDOW(parent_), cert_id_); 507 tab_contents_->web_contents(), GTK_WINDOW(parent_), cert_id_);
531 bubble_->Close(); 508 bubble_->Close();
532 } 509 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698