Chromium Code Reviews| Index: chrome/renderer/searchbox/searchbox.h |
| diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h |
| index 632db0b9c3a79c7e481e7347ea374cf11f3eb2ca..189f7451cc417be20cdc5bfa52d354441e45d65e 100644 |
| --- a/chrome/renderer/searchbox/searchbox.h |
| +++ b/chrome/renderer/searchbox/searchbox.h |
| @@ -29,14 +29,22 @@ class SearchBox : public content::RenderViewObserver, |
| virtual ~SearchBox(); |
| // Sends ViewHostMsg_SetSuggestions to the browser. |
| - void SetSuggestions(const std::vector<string16>& suggestions, |
| - InstantCompleteBehavior behavior); |
| + void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); |
| + |
| + // Sends ViewHostMsg_SetInstantPreviewHeight to the browser. |
| + void SetInstantPreviewHeight(int height, InstantSizeUnits units); |
| const string16& value() const { return value_; } |
| bool verbatim() const { return verbatim_; } |
| size_t selection_start() const { return selection_start_; } |
| size_t selection_end() const { return selection_end_; } |
| + int results_base() const { return results_base_; } |
| gfx::Rect GetRect(); |
| + const std::vector<InstantAutocompleteResult>& autocomplete_results() |
| + const { |
|
sreeram
2012/08/13 16:37:08
The const seems to fit on the previous line, no?
Shishir
2012/08/13 18:11:12
Done.
|
| + return autocomplete_results_; |
| + } |
| + int key_code() const { return key_code_; } |
| private: |
| // RenderViewObserver implementation. |
| @@ -50,6 +58,9 @@ class SearchBox : public content::RenderViewObserver, |
| void OnCancel(const string16& value); |
| void OnResize(const gfx::Rect& bounds); |
| void OnDetermineIfPageSupportsInstant(); |
| + void OnAutocompleteResults( |
| + const std::vector<InstantAutocompleteResult>& results); |
| + void OnKeyPress(int key_code); |
| // Sets the searchbox values to their initial value. |
| void Reset(); |
| @@ -58,7 +69,10 @@ class SearchBox : public content::RenderViewObserver, |
| bool verbatim_; |
| size_t selection_start_; |
| size_t selection_end_; |
| + int results_base_; |
| gfx::Rect rect_; |
| + std::vector<InstantAutocompleteResult> autocomplete_results_; |
| + int key_code_; |
| DISALLOW_COPY_AND_ASSIGN(SearchBox); |
| }; |