summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-22 00:35:53 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-22 00:35:53 +0000
commit0cf8371778be69290c13e35a0abc6b6b402b0702 (patch)
tree885b2b1a1d39a4500df82776e914a552386a76be /chrome/browser/autocomplete/autocomplete_popup_view_mac.h
parent650e2cae692b1ec5d4f079043b466c59abef4f4b (diff)
downloadchromium_src-0cf8371778be69290c13e35a0abc6b6b402b0702.zip
chromium_src-0cf8371778be69290c13e35a0abc6b6b402b0702.tar.gz
chromium_src-0cf8371778be69290c13e35a0abc6b6b402b0702.tar.bz2
[Mac] Cmd-Return in the omnibox should revert the omnibox text back to its original state.
BUG=23514 TEST=Type a URL into the omnibox, then Cmd-Return. The omnibox text should revert to its original state. Review URL: http://codereview.chromium.org/260008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_view_mac.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_mac.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
index 3782ef8..65a814f 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h
@@ -69,10 +69,10 @@ class AutocompletePopupViewMac : public AutocompletePopupView {
// Returns the popup's model.
virtual AutocompletePopupModel* GetModel();
- // Updates model_'s sense of selected line from the UI before
- // calling edit_view_'s AcceptInput(). Used by internal Objective-C
- // helper object.
- void AcceptInput();
+ // Called when the user clicks an item. Opens the hovered item and
+ // potentially dismisses the popup without formally selecting anything in the
+ // model.
+ void OnClick();
// Called when the user middle-clicks an item. Opens the hovered
// item in a background tab.
@@ -109,6 +109,12 @@ class AutocompletePopupViewMac : public AutocompletePopupView {
// Create the popup_ instance if needed.
void CreatePopupIfNeeded();
+ // Opens the URL corresponding to the given |row|. If |force_background| is
+ // true, forces the URL to open in a background tab. Otherwise, determines
+ // the proper window open disposition from the modifier flags on |[NSApp
+ // currentEvent]|.
+ void OpenURLForRow(int row, bool force_background);
+
scoped_ptr<AutocompletePopupModel> model_;
AutocompleteEditViewMac* edit_view_;
const BubblePositioner* bubble_positioner_; // owned by toolbar controller