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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 6036004: Refactor AutocompleteEditViewGtk so that AutocompleteEditView impl can be swapped. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 11 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/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 317bd788dd3b001fbbf36dd7f0fa8ca7943aed4a..1ffa5b19576e1eeb525c6799481b7796e84ae2a1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -25,9 +25,8 @@
#if defined(OS_WIN)
#include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
-#else
+#elif defined(OS_LINUX)
#include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h"
-#include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
#endif
class CommandUpdater;
@@ -330,7 +329,7 @@ class LocationBarView : public LocationBar,
#if defined(OS_WIN)
scoped_ptr<AutocompleteEditViewWin> location_entry_;
#else
- scoped_ptr<AutocompleteEditViewGtk> location_entry_;
+ scoped_ptr<AutocompleteEditView> location_entry_;
#endif
// The CommandUpdater for the Browser object that corresponds to this View.
@@ -364,8 +363,8 @@ class LocationBarView : public LocationBar,
// A bubble displayed for EV HTTPS sites.
EVBubbleView* ev_bubble_view_;
- // Location_entry view wrapper
- views::NativeViewHost* location_entry_view_;
+ // Location_entry view
+ views::View* location_entry_view_;
// The following views are used to provide hints and remind the user as to
// what is going in the edit. They are all added a children of the
@@ -409,10 +408,6 @@ class LocationBarView : public LocationBar,
// crash.
TemplateURLModel* template_url_model_;
-#if defined(OS_LINUX)
- scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_;
-#endif
-
// Should instant be updated? This is set to false in OnAutocompleteWillAccept
// and true in OnAutocompleteAccept. This is needed as prior to accepting an
// autocomplete suggestion the model is reverted which triggers resetting

Powered by Google App Engine
This is Rietveld 408576698