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