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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 10810062: Moving common code into OmniboxView from OmniboxView* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win fixes Created 8 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/ui/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 3859e58e77db904c69a158ac2105a184a542a282..86802dc0d1efed02d57076c3ab68be3cad55898d 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -544,8 +544,8 @@ void LocationBarViewGtk::OnAutocompleteAccept(const GURL& url,
void LocationBarViewGtk::OnChanged() {
UpdateSiteTypeArea();
- const string16 keyword(location_entry_->model()->keyword());
- const bool is_keyword_hint = location_entry_->model()->is_keyword_hint();
+ const string16 keyword(location_entry_->GetModel()->keyword());
+ const bool is_keyword_hint = location_entry_->GetModel()->is_keyword_hint();
show_selected_keyword_ = !keyword.empty() && !is_keyword_hint;
show_keyword_hint_ = !keyword.empty() && is_keyword_hint;
@@ -679,7 +679,7 @@ void LocationBarViewGtk::ShowFirstRunBubble() {
void LocationBarViewGtk::SetSuggestedText(const string16& text,
InstantCompleteBehavior behavior) {
- location_entry_->model()->SetSuggestedText(text, behavior);
+ location_entry_->GetModel()->SetSuggestedText(text, behavior);
}
string16 LocationBarViewGtk::GetInputString() const {
@@ -695,7 +695,7 @@ content::PageTransition LocationBarViewGtk::GetPageTransition() const {
}
void LocationBarViewGtk::AcceptInput() {
- location_entry_->model()->AcceptInput(CURRENT_TAB, false);
+ location_entry_->GetModel()->AcceptInput(CURRENT_TAB, false);
}
void LocationBarViewGtk::FocusLocation(bool select_all) {
@@ -956,8 +956,8 @@ gboolean LocationBarViewGtk::HandleExpose(GtkWidget* widget,
void LocationBarViewGtk::UpdateSiteTypeArea() {
// The icon is always visible except when the |tab_to_search_alignment_| is
// visible.
- if (!location_entry_->model()->keyword().empty() &&
- !location_entry_->model()->is_keyword_hint()) {
+ if (!location_entry_->GetModel()->keyword().empty() &&
+ !location_entry_->GetModel()->is_keyword_hint()) {
gtk_widget_hide(site_type_area());
return;
}

Powered by Google App Engine
This is Rietveld 408576698