OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_gtk.h" | |
6 | |
7 #include "chrome/browser/ui/gtk/gtk_util.h" | |
8 | |
9 //////////////////////////////////////////////////////////////////////////////// | |
10 // AutocompletePopupGtk, public: | |
11 | |
12 AutocompletePopupGtk::AutocompletePopupGtk() { | |
13 } | |
14 | |
15 AutocompletePopupGtk::~AutocompletePopupGtk() { | |
16 } | |
17 | |
18 gfx::NativeView AutocompletePopupGtk::GetRelativeWindowForPopup( | |
19 gfx::NativeView edit_native_view) const { | |
20 GtkWidget* toplevel = gtk_widget_get_toplevel(edit_native_view); | |
21 DCHECK(GTK_WIDGET_TOPLEVEL(toplevel)); | |
22 return toplevel; | |
23 } | |
OLD | NEW |