Index: chrome/browser/autocomplete/autocomplete_edit_view_mac.h |
=================================================================== |
--- chrome/browser/autocomplete/autocomplete_edit_view_mac.h (revision 26600) |
+++ chrome/browser/autocomplete/autocomplete_edit_view_mac.h (working copy) |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/autocomplete/autocomplete_edit_view.h" |
#include "chrome/browser/toolbar_model.h" |
#include "chrome/common/page_transition_types.h" |
+#include "grit/generated_resources.h" |
#include "webkit/glue/window_open_disposition.h" |
class AutocompleteEditController; |
@@ -113,6 +114,19 @@ |
// Called when the user attempts to paste into |field_|. |
void OnPaste(); |
+ // 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 "pastes and go" or "paste and search" into |
rohitrao (ping after 24h)
2009/09/18 19:17:12
Typo fixed but didn't bother to reupload.
|
+ // |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(); |