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

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

Issue 5339014: [gtk] tab in omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't randomly add a newline Created 10 years, 1 month 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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc
index 6447df68dcfc431e8e4a60ff5e1558729428140b..ca26d43c4b6f5d8a6a4fbd9070de73834a8b79c0 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc
@@ -467,6 +467,15 @@ bool LocationBarViewGtk::OnCommitSuggestedText(
return rv;
}
+bool LocationBarViewGtk::AcceptCurrentInstantPreview() {
+ InstantController* instant = browser_->instant();
+ if (instant && instant->IsCurrent()) {
+ instant->CommitCurrentPreview(INSTANT_COMMIT_PRESSED_ENTER);
+ return true;
+ }
+ return false;
+}
+
void LocationBarViewGtk::OnSetSuggestedSearchText(
const string16& suggested_text) {
SetSuggestedText(suggested_text);
« chrome/browser/autocomplete/autocomplete_edit.h ('K') | « chrome/browser/gtk/location_bar_view_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698