| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); | 231 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); |
| 232 browser->OpenURL(OpenURLParams( | 232 browser->OpenURL(OpenURLParams( |
| 233 url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK)); | 233 url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK)); |
| 234 bubble_->Close(); | 234 bubble_->Close(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace | 237 } // namespace |
| 238 | 238 |
| 239 namespace browser { | 239 namespace browser { |
| 240 | 240 |
| 241 void ShowPageInfoBubble(gfx::NativeWindow parent, | 241 void ShowPageInfoBubble(Browser* browser, |
| 242 Profile* profile, | 242 Profile* profile, |
| 243 const GURL& url, | 243 const GURL& url, |
| 244 const NavigationEntry::SSLStatus& ssl, | 244 const NavigationEntry::SSLStatus& ssl, |
| 245 bool show_history) { | 245 bool show_history) { |
| 246 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); | 246 new PageInfoBubbleGtk(browser->window()->GetNativeHandle(), profile, url, ssl, |
| 247 show_history); |
| 247 } | 248 } |
| 248 | 249 |
| 249 } // namespace browser | 250 } // namespace browser |
| OLD | NEW |