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

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

Issue 246009: [Mac] Support undo in the omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/cocoa/autocomplete_text_field.h » ('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.mm
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (revision 31782)
+++ chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (working copy)
@@ -357,6 +357,7 @@
// can be removed.
EmphasizeURLComponents();
controller_->OnChanged();
+ [field_ clearUndoChain];
}
void AutocompleteEditViewMac::UpdatePopup() {
@@ -478,6 +479,7 @@
SetWindowTextAndCaretPos(display_text, display_text.size());
controller_->OnChanged();
+ [field_ clearUndoChain];
}
bool AutocompleteEditViewMac::OnInlineAutocompleteTextMaybeChanged(
@@ -493,6 +495,7 @@
const NSRange range = NSMakeRange(user_text_length, display_text.size());
SetTextAndSelectedRange(display_text, range);
controller_->OnChanged();
+ [field_ clearUndoChain];
return true;
}
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698