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
12AutocompletePopupGtk::AutocompletePopupGtk()
13    : WidgetGtk(WidgetGtk::TYPE_POPUP) {
14}
15
16AutocompletePopupGtk::~AutocompletePopupGtk() {
17}
18
19gfx::NativeView AutocompletePopupGtk::GetRelativeWindowForPopup(
20    gfx::NativeView edit_native_view) const {
21  GtkWidget* toplevel = gtk_widget_get_toplevel(edit_native_view);
22  DCHECK(GTK_WIDGET_TOPLEVEL(toplevel));
23  return toplevel;
24}
25