OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 void PageInfoBubbleGtk::OnViewCertLinkClicked(GtkWidget* widget) { | 222 void PageInfoBubbleGtk::OnViewCertLinkClicked(GtkWidget* widget) { |
223 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_); | 223 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_); |
224 bubble_->Close(); | 224 bubble_->Close(); |
225 } | 225 } |
226 | 226 |
227 void PageInfoBubbleGtk::OnHelpLinkClicked(GtkWidget* widget) { | 227 void PageInfoBubbleGtk::OnHelpLinkClicked(GtkWidget* widget) { |
228 GURL url = google_util::AppendGoogleLocaleParam( | 228 GURL url = google_util::AppendGoogleLocaleParam( |
229 GURL(chrome::kPageInfoHelpCenterURL)); | 229 GURL(chrome::kPageInfoHelpCenterURL)); |
230 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); | 230 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); |
231 browser->OpenURL(OpenURLParams( | 231 browser->OpenURL(OpenURLParams( |
232 url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); | 232 url, content::Referrer(), NEW_FOREGROUND_TAB, |
| 233 content::PAGE_TRANSITION_LINK, false)); |
233 bubble_->Close(); | 234 bubble_->Close(); |
234 } | 235 } |
235 | 236 |
236 } // namespace | 237 } // namespace |
237 | 238 |
238 namespace browser { | 239 namespace browser { |
239 | 240 |
240 void ShowPageInfoBubble(gfx::NativeWindow parent, | 241 void ShowPageInfoBubble(gfx::NativeWindow parent, |
241 Profile* profile, | 242 Profile* profile, |
242 const GURL& url, | 243 const GURL& url, |
243 const NavigationEntry::SSLStatus& ssl, | 244 const NavigationEntry::SSLStatus& ssl, |
244 bool show_history) { | 245 bool show_history) { |
245 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); | 246 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); |
246 } | 247 } |
247 | 248 |
248 } // namespace browser | 249 } // namespace browser |
OLD | NEW |