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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h

Issue 10915069: Add Copy URL option to Omnibox context menu when URL is replaced by Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
index 8e637ea436b4daa7370bcf57e6c5278241634507..67c601f3db3597a3bfaa566ed49f513ab63c74dd 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
@@ -48,6 +48,14 @@ class AutocompleteTextFieldObserver {
// Called when the user does a copy or drag.
virtual void CopyToPasteboard(NSPasteboard* pboard) = 0;
+ // Clears |pboard| and adds the current URL. Specifically used when the user
+ // explicitly requests to copy the URL in cases where extended instant has
+ // overridden the URL with the search terms.
+ virtual void CopyURLToPasteboard(NSPasteboard* pboard) = 0;
+
+ // Returns true if the Copy to URL option should be available.
+ virtual bool ShouldEnableCopyURL() = 0;
+
// Returns true if the current clipboard text supports paste and go
// (or paste and search).
virtual bool CanPasteAndGo() = 0;
« no previous file with comments | « chrome/browser/bookmarks/bookmark_node_data.h ('k') | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698