Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Added comment. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/searchbox_api.js ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698