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/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/api/infobars/infobar_service.h" | 10 #include "chrome/browser/api/infobars/infobar_service.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 gtk_box_pack_start(GTK_BOX(title_hbox), label, FALSE, FALSE, 0); | 121 gtk_box_pack_start(GTK_BOX(title_hbox), label, FALSE, FALSE, 0); |
122 | 122 |
123 // Add section content | 123 // Add section content |
124 gtk_box_pack_start(GTK_BOX(section_box), section_content, FALSE, FALSE, 0); | 124 gtk_box_pack_start(GTK_BOX(section_box), section_content, FALSE, FALSE, 0); |
125 return section_box; | 125 return section_box; |
126 } | 126 } |
127 | 127 |
128 // A popup that is shown for internal pages (like chrome://). | 128 // A popup that is shown for internal pages (like chrome://). |
129 class InternalPageInfoPopupGtk : public BubbleDelegateGtk { | 129 class InternalPageInfoPopupGtk : public BubbleDelegateGtk { |
130 public: | 130 public: |
131 explicit InternalPageInfoPopupGtk(gfx::NativeWindow parent, | 131 InternalPageInfoPopupGtk(gfx::NativeWindow parent, |
132 Profile* profile); | 132 Profile* profile); |
133 virtual ~InternalPageInfoPopupGtk(); | 133 virtual ~InternalPageInfoPopupGtk(); |
134 | 134 |
135 private: | 135 private: |
136 // BubbleDelegateGtk implementation. | 136 // BubbleDelegateGtk implementation. |
137 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; | 137 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
138 | 138 |
139 // The popup bubble container. | 139 // The popup bubble container. |
140 BubbleGtk* bubble_; | 140 BubbleGtk* bubble_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(InternalPageInfoPopupGtk); | 142 DISALLOW_COPY_AND_ASSIGN(InternalPageInfoPopupGtk); |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 } | 733 } |
734 | 734 |
735 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) { | 735 void WebsiteSettingsPopupGtk::OnHelpLinkClicked(GtkWidget* widget) { |
736 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL), | 736 browser_->OpenURL(OpenURLParams(GURL(chrome::kPageInfoHelpCenterURL), |
737 content::Referrer(), | 737 content::Referrer(), |
738 NEW_FOREGROUND_TAB, | 738 NEW_FOREGROUND_TAB, |
739 content::PAGE_TRANSITION_LINK, | 739 content::PAGE_TRANSITION_LINK, |
740 false)); | 740 false)); |
741 bubble_->Close(); | 741 bubble_->Close(); |
742 } | 742 } |
OLD | NEW |