| Index: chrome/browser/autocomplete/autocomplete_edit.h
|
| diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h
|
| index 9f4e9730761a8933535f705d3be913be53e65602..66d6b98aba434c05b7482918d4b597d13e2c2276 100644
|
| --- a/chrome/browser/autocomplete/autocomplete_edit.h
|
| +++ b/chrome/browser/autocomplete/autocomplete_edit.h
|
| @@ -147,6 +147,17 @@ class AutocompleteEditModel : public NotificationObserver {
|
| // copy.
|
| bool GetURLForText(const std::wstring& text, GURL* url) const;
|
|
|
| + // Invoked to adjust the text before writting to the clipboard for a copy
|
| + // (e.g. by adding 'http' to the front). |sel_start| gives the start of the
|
| + // selection. |text| is the currently selected text. If |is_all_selected| is
|
| + // true all the text in the edit is selected. If the url should be copied to
|
| + // the clipboard |write_url| is set to true and |url| set to the url to write.
|
| + void AdjustTextForCopy(int sel_start,
|
| + bool is_all_selected,
|
| + std::wstring* text,
|
| + GURL* url,
|
| + bool* write_url);
|
| +
|
| bool user_input_in_progress() const { return user_input_in_progress_; }
|
|
|
| // Sets the state of user_input_in_progress_, and notifies the observer if
|
|
|