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

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

Issue 125201: Fix bug where the autocomplete text was being overridden by the user-entered text. (Closed)
Patch Set: Created 11 years, 6 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
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
index 5ec2d0f1422870fc4474604c62e734a07268345c..6c7ccfbad55e1b05e74c5adf3790237067a9e26d 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
@@ -119,7 +119,16 @@ class AutocompleteEditViewMac : public AutocompleteEditView {
// Update the field with |display_text| and highlight the host and
// scheme (if it's an URL or URL-fragment).
- void UpdateAndStyleText(const std::wstring& display_text);
+ void SetText(const std::wstring& display_text);
+
+ // Update the field with |display_text| and set the selection.
+ void SetTextAndSelectedRange(const std::wstring& display_text,
+ const NSRange range);
+
+ // Pass the current content of |field_| to SetText(), maintaining
+ // any selection. Named to be consistent with GTK and Windows,
+ // though here we cannot really do the in-place operation they do.
+ void EmphasizeURLComponents();
scoped_ptr<AutocompleteEditModel> model_;
scoped_ptr<AutocompletePopupViewMac> popup_view_;
« 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