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

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

Issue 10961016: [gtk] re-acquire input grab on bubbles when another widget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 gtk_widget_show_all(tabstrip_alignment_); 416 gtk_widget_show_all(tabstrip_alignment_);
417 } 417 }
418 } 418 }
419 419
420 void WebsiteSettingsPopupGtk::OnPermissionChanged( 420 void WebsiteSettingsPopupGtk::OnPermissionChanged(
421 PermissionSelector* selector) { 421 PermissionSelector* selector) {
422 presenter_->OnSitePermissionChanged(selector->GetType(), 422 presenter_->OnSitePermissionChanged(selector->GetType(),
423 selector->GetSetting()); 423 selector->GetSetting());
424 } 424 }
425 425
426 void WebsiteSettingsPopupGtk::OnComboboxShown() {
427 bubble_->HandlePointerAndKeyboardUngrabbedByContent();
428 }
429
430 void WebsiteSettingsPopupGtk::SetCookieInfo( 426 void WebsiteSettingsPopupGtk::SetCookieInfo(
431 const CookieInfoList& cookie_info_list) { 427 const CookieInfoList& cookie_info_list) {
432 DCHECK(cookies_section_contents_); 428 DCHECK(cookies_section_contents_);
433 ClearContainer(cookies_section_contents_); 429 ClearContainer(cookies_section_contents_);
434 430
435 // Create cookies info rows. 431 // Create cookies info rows.
436 for (CookieInfoList::const_iterator it = cookie_info_list.begin(); 432 for (CookieInfoList::const_iterator it = cookie_info_list.begin();
437 it != cookie_info_list.end(); 433 it != cookie_info_list.end();
438 ++it) { 434 ++it) {
439 // Create the cookies info box. 435 // Create the cookies info box.
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 } 737 }
742 738
743 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) { 739 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) {
744 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL), 740 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL),
745 content::Referrer(), 741 content::Referrer(),
746 NEW_FOREGROUND_TAB, 742 NEW_FOREGROUND_TAB,
747 content::PAGE_TRANSITION_LINK, 743 content::PAGE_TRANSITION_LINK,
748 false)); 744 false));
749 bubble_->Close(); 745 bubble_->Close();
750 } 746 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h ('k') | ui/base/gtk/gtk_signal_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698