diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_gtk.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h index b63c2f2..06ef3f4 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h +++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h @@ -53,8 +53,9 @@ class AutocompleteEditViewGtk : public AutocompleteEditView, CharRange() : cp_min(0), cp_max(0) { } CharRange(int n, int x) : cp_min(n), cp_max(x) { } - // Returns the start of the selection. + // Returns the start/end of the selection. int selection_min() const { return std::min(cp_min, cp_max); } + int selection_max() const { return std::max(cp_min, cp_max); } // Work in integers to match the gint GTK APIs. int cp_min; // For a selection: Represents the start. @@ -116,6 +117,8 @@ class AutocompleteEditViewGtk : public AutocompleteEditView, virtual void SetWindowTextAndCaretPos(const std::wstring& text, size_t caret_pos); + virtual void ReplaceSelection(const string16& text); + virtual void SetForcedQuery(); virtual bool IsSelectAll(); |