| 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)); | 232 url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); |
| 233 bubble_->Close(); | 233 bubble_->Close(); |
| 234 } | 234 } |
| 235 | 235 |
| 236 } // namespace | 236 } // namespace |
| 237 | 237 |
| 238 namespace browser { | 238 namespace browser { |
| 239 | 239 |
| 240 void ShowPageInfoBubble(gfx::NativeWindow parent, | 240 void ShowPageInfoBubble(gfx::NativeWindow parent, |
| 241 Profile* profile, | 241 Profile* profile, |
| 242 const GURL& url, | 242 const GURL& url, |
| 243 const NavigationEntry::SSLStatus& ssl, | 243 const NavigationEntry::SSLStatus& ssl, |
| 244 bool show_history) { | 244 bool show_history) { |
| 245 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); | 245 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace browser | 248 } // namespace browser |
| OLD | NEW |