| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 AutocompleteMatch CurrentMatch(GURL* alternate_nav_url) const; | 119 AutocompleteMatch CurrentMatch(GURL* alternate_nav_url) const; |
| 120 | 120 |
| 121 // Called when the user wants to export the entire current text as a URL. | 121 // Called when the user wants to export the entire current text as a URL. |
| 122 // Sets the url, and if known, the title and favicon. | 122 // Sets the url, and if known, the title and favicon. |
| 123 void GetDataForURLExport(GURL* url, | 123 void GetDataForURLExport(GURL* url, |
| 124 base::string16* title, | 124 base::string16* title, |
| 125 gfx::Image* favicon); | 125 gfx::Image* favicon); |
| 126 | 126 |
| 127 // Returns true if the current edit contents will be treated as a | 127 // Returns true if the current edit contents will be treated as a |
| 128 // URL/navigation, as opposed to a search. | 128 // URL/navigation, as opposed to a search. |
| 129 bool CurrentTextIsURL() const; | 129 virtual bool CurrentTextIsURL() const; |
| 130 | 130 |
| 131 // Returns the match type for the current edit contents. | 131 // Returns the match type for the current edit contents. |
| 132 AutocompleteMatch::Type CurrentTextType() const; | 132 AutocompleteMatch::Type CurrentTextType() const; |
| 133 | 133 |
| 134 // Invoked to adjust the text before writting to the clipboard for a copy | 134 // Invoked to adjust the text before writting to the clipboard for a copy |
| 135 // (e.g. by adding 'http' to the front). |sel_min| gives the minimum position | 135 // (e.g. by adding 'http' to the front). |sel_min| gives the minimum position |
| 136 // of the selection e.g. min(selection_start, selection_end). |text| is the | 136 // of the selection e.g. min(selection_start, selection_end). |text| is the |
| 137 // currently selected text. If |is_all_selected| is true all the text in the | 137 // currently selected text. If |is_all_selected| is true all the text in the |
| 138 // edit is selected. If the url should be copied to the clipboard |write_url| | 138 // edit is selected. If the url should be copied to the clipboard |write_url| |
| 139 // is set to true and |url| set to the url to write. | 139 // is set to true and |url| set to the url to write. |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 561 |
| 562 // The input that was sent to the AutocompleteController. Since no | 562 // The input that was sent to the AutocompleteController. Since no |
| 563 // autocomplete query is started after a tab switch, it is possible for this | 563 // autocomplete query is started after a tab switch, it is possible for this |
| 564 // |input_| to differ from the one currently stored in AutocompleteController. | 564 // |input_| to differ from the one currently stored in AutocompleteController. |
| 565 AutocompleteInput input_; | 565 AutocompleteInput input_; |
| 566 | 566 |
| 567 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); | 567 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); |
| 568 }; | 568 }; |
| 569 | 569 |
| 570 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 570 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| OLD | NEW |