summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 21:31:39 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 21:31:39 +0000
commit599ea9fd7f5f029661916c191ff89b7358719f81 (patch)
treec72cab547f6dee71007cad75402a774e8bce735f /chrome/browser/autocomplete/autocomplete_edit_view_mac.h
parent4e78ee1663d14ef7a087cefbd644652e53b9bdcb (diff)
downloadchromium_src-599ea9fd7f5f029661916c191ff89b7358719f81.zip
chromium_src-599ea9fd7f5f029661916c191ff89b7358719f81.tar.gz
chromium_src-599ea9fd7f5f029661916c191ff89b7358719f81.tar.bz2
[Mac] Convert Omnibox paste-and-go to use AutocompleteTextFieldObserver.
Obvious result of Rohit's addition of paste-and-go and my refactor to add AutocompleteTextFieldObserver. Bonus prize of unit tests for cocoa/ part of Rohit's change. Review URL: http://codereview.chromium.org/207047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_mac.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
index 5913c42..56d7cee 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
@@ -93,6 +93,9 @@ class AutocompleteEditViewMac : public AutocompleteEditView,
// Implement the AutocompleteTextFieldObserver interface.
virtual void OnControlKeyChanged(bool pressed);
virtual void OnPaste();
+ virtual bool CanPasteAndGo();
+ virtual int GetPasteActionStringId();
+ virtual void OnPasteAndGo();
// Helper functions for use from AutocompleteEditHelper Objective-C
// class.
@@ -115,19 +118,6 @@ class AutocompleteEditViewMac : public AutocompleteEditView,
// visual state (such as closing the popup).
void OnDidResignKey();
- // Returns true if the current clipboard text supports paste and go (or paste
- // and search).
- bool CanPasteAndGo();
-
- // Returns the appropriate "Paste and Go" or "Paste and Search" context menu
- // string, depending on what is currently in the clipboard. Must not be
- // called unless CanPasteAndGo() returns true.
- int GetPasteActionStringId();
-
- // Called when the user initiates a "paste and go" or "paste and search" into
- // |field_|.
- void OnPasteAndGo();
-
// Checks if a keyword search is possible and forwards to |model_|
// if so. Returns true if the tab should be eaten.
bool OnTabPressed();