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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.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_unittest_helper.h
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h
index 11c980695faca189f9303cb09cdb8e37761d8314..5174a0f4de6bc9498f22e1ed72aa7e5e196c264a 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.h
@@ -38,6 +38,7 @@ class MockAutocompleteTextFieldObserver : public AutocompleteTextFieldObserver {
MOCK_METHOD1(OnControlKeyChanged, void(bool pressed));
MOCK_METHOD0(CanCopy, bool());
MOCK_METHOD1(CopyToPasteboard, void(NSPasteboard* pboard));
+ MOCK_METHOD1(CopyURLToPasteboard, void(NSPasteboard* pboard));
MOCK_METHOD0(OnPaste, void());
MOCK_METHOD0(CanPasteAndGo, bool());
MOCK_METHOD0(GetPasteActionStringId, int());
@@ -52,6 +53,7 @@ class MockAutocompleteTextFieldObserver : public AutocompleteTextFieldObserver {
MOCK_METHOD1(OnDoCommandBySelector, bool(SEL cmd));
MOCK_METHOD1(OnSetFocus, void(bool control_down));
MOCK_METHOD0(OnKillFocus, void());
+ MOCK_METHOD0(ShouldEnableCopyURL, bool());
};
#endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698