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

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. 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 48
43 gfx::Rect GetRect(); 49 gfx::Rect GetRect();
44 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults(); 50 const std::vector<InstantAutocompleteResult>& GetAutocompleteResults();
45 // Searchbox retains ownership of this object. 51 // Searchbox retains ownership of this object.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 size_t last_results_base_; 86 size_t last_results_base_;
81 std::vector<InstantAutocompleteResult> last_autocomplete_results_; 87 std::vector<InstantAutocompleteResult> last_autocomplete_results_;
82 chrome::search::Mode mode_; 88 chrome::search::Mode mode_;
83 ThemeBackgroundInfo theme_info_; 89 ThemeBackgroundInfo theme_info_;
84 int theme_area_height_; 90 int theme_area_height_;
85 91
86 DISALLOW_COPY_AND_ASSIGN(SearchBox); 92 DISALLOW_COPY_AND_ASSIGN(SearchBox);
87 }; 93 };
88 94
89 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 95 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698