From 534c59086c951a0687fce53c2a8de49a2100867e Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Fri, 21 Aug 2009 16:23:40 +0000 Subject: [Mac] Omnibox keyword, keyword hint, and search hint support. BUG=http://crbug.com/10944 BUG=http://crbug.com/10943 BUG=http://crbug.com/12285 TEST=With empty field, should see "Type to search" in light text on the RHS of the omnibox. Type "google" and should see "Press [Tab] to search Google" in light text on the RHS. Hit TAB, should see a rounded [Search Google:] item on the left and the cursor is now right of that. Popup should show "Keyword:" in some entries. Patch by shess@chromium.org. Review URL: http://codereview.chromium.org/173194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23964 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/autocomplete_edit_view_mac.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.h') diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h index b82ec01..b648e7a 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h +++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h @@ -112,6 +112,9 @@ class AutocompleteEditViewMac : public AutocompleteEditView { void AcceptInput(WindowOpenDisposition disposition, bool for_drop); + // Forwards to |model_| when user hits Tab. + void AcceptKeyword(); + // Helper for LocationBarViewMac. Selects all in |field_|. void FocusLocation(); -- cgit v1.1