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

Side by Side Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_gtk.cc

Issue 6881107: Rework the way Widget::Init works: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 "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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698