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 CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual ~SearchBox(); | 26 virtual ~SearchBox(); |
27 | 27 |
28 // Sends ViewHostMsg_SetSuggestions to the browser. | 28 // Sends ViewHostMsg_SetSuggestions to the browser. |
29 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); | 29 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); |
30 | 30 |
31 // Sends ViewHostMsg_ShowInstantPreview to the browser. | 31 // Sends ViewHostMsg_ShowInstantPreview to the browser. |
32 void ShowInstantPreview(InstantShownReason reason, | 32 void ShowInstantPreview(InstantShownReason reason, |
33 int height, | 33 int height, |
34 InstantSizeUnits units); | 34 InstantSizeUnits units); |
35 | 35 |
| 36 // Sends ViewHostMsg_StartCapturingKeyStrokes to the browser. |
| 37 void StartCapturingKeyStrokes(); |
| 38 |
| 39 // Sends ViewHostMsg_StopCapturingKeyStrokes to the browser. |
| 40 void StopCapturingKeyStrokes(); |
| 41 |
36 const string16& query() const { return query_; } | 42 const string16& query() const { return query_; } |
37 bool verbatim() const { return verbatim_; } | 43 bool verbatim() const { return verbatim_; } |
38 size_t selection_start() const { return selection_start_; } | 44 size_t selection_start() const { return selection_start_; } |
39 size_t selection_end() const { return selection_end_; } | 45 size_t selection_end() const { return selection_end_; } |
40 int results_base() const { return results_base_; } | 46 int results_base() const { return results_base_; } |
41 const chrome::search::Mode& mode() const { return mode_; } | 47 const chrome::search::Mode& mode() const { return mode_; } |
42 bool display_instant_results() const { return display_instant_results_; } | 48 bool display_instant_results() const { return display_instant_results_; } |
43 | 49 |
44 gfx::Rect GetRect(); | 50 gfx::Rect GetRect(); |
45 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults(); | 51 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::vector<InstantAutocompleteResult> last_autocomplete_results_; | 89 std::vector<InstantAutocompleteResult> last_autocomplete_results_; |
84 chrome::search::Mode mode_; | 90 chrome::search::Mode mode_; |
85 ThemeBackgroundInfo theme_info_; | 91 ThemeBackgroundInfo theme_info_; |
86 int theme_area_height_; | 92 int theme_area_height_; |
87 bool display_instant_results_; | 93 bool display_instant_results_; |
88 | 94 |
89 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 95 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
90 }; | 96 }; |
91 | 97 |
92 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 98 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |