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

Side by Side Diff: chrome/browser/ui/gtk/page_info_bubble_gtk.cc

Issue 8068020: Converts usage of GetBrowserViewForNativeWindow to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698