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

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

Issue 192008: [Mac] Implement Paste and Go/Search. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' 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
===================================================================
--- 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();
« 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