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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc

Issue 160378: Make TOOLKIT_VIEWS port use views-based Autocomplete popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (revision 21913)
+++ chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (working copy)
@@ -7,6 +7,7 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include "app/gfx/font.h"
#include "app/l10n_util.h"
#include "base/gfx/gtk_util.h"
#include "base/logging.h"
@@ -79,8 +80,10 @@
secure_scheme_tag_(NULL),
insecure_scheme_tag_(NULL),
model_(new AutocompleteEditModel(this, controller, profile)),
- popup_view_(new AutocompletePopupViewGtk(this, model_.get(), profile,
- popup_positioner)),
+ popup_view_(AutocompletePopupView::CreatePopupView(gfx::Font(), this,
+ model_.get(),
+ profile,
+ popup_positioner)),
controller_(controller),
toolbar_model_(toolbar_model),
command_updater_(command_updater),
@@ -426,6 +429,10 @@
return something_changed;
}
+gfx::NativeView AutocompleteEditViewGtk::GetNativeView() const {
+ return alignment_.get();
+}
+
void AutocompleteEditViewGtk::HandleBeginUserAction() {
OnBeforePossibleChange();
}
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698