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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.h

Issue 207047: [Mac] Convert Omnibox paste-and-go to use AutocompleteTextFieldObserver. (Closed)
Patch Set: Oops - remove test before its time. Created 11 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 5913c425f024a9e2800f9a021c9a66a06ad0fe56..56d7cee840a275e5c51988573a26b2a11acf6dc5 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();
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698