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

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

Issue 12621008: chrome-search: should not be display-isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to HEAD Created 7 years, 9 months 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 | Annotate | Revision Log
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void OnAutocompleteResults( 127 void OnAutocompleteResults(
128 const std::vector<InstantAutocompleteResult>& results); 128 const std::vector<InstantAutocompleteResult>& results);
129 void OnUpOrDownKeyPressed(int count); 129 void OnUpOrDownKeyPressed(int count);
130 void OnCancelSelection(const string16& query); 130 void OnCancelSelection(const string16& query);
131 void OnKeyCaptureChange(bool is_key_capture_enabled); 131 void OnKeyCaptureChange(bool is_key_capture_enabled);
132 void OnSetDisplayInstantResults(bool display_instant_results); 132 void OnSetDisplayInstantResults(bool display_instant_results);
133 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 133 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
134 void OnThemeAreaHeightChanged(int height); 134 void OnThemeAreaHeightChanged(int height);
135 void OnFontInformationReceived(const string16& omnibox_font, 135 void OnFontInformationReceived(const string16& omnibox_font,
136 size_t omnibox_font_size); 136 size_t omnibox_font_size);
137 void OnGrantChromeSearchAccessFromOrigin(const GURL& origin_url);
138 void OnMostVisitedChanged( 137 void OnMostVisitedChanged(
139 const std::vector<InstantMostVisitedItemIDPair>& items); 138 const std::vector<InstantMostVisitedItemIDPair>& items);
140 139
141 // Returns the current zoom factor of the render view or 1 on failure. 140 // Returns the current zoom factor of the render view or 1 on failure.
142 double GetZoom() const; 141 double GetZoom() const;
143 142
144 // Sets the searchbox values to their initial value. 143 // Sets the searchbox values to their initial value.
145 void Reset(); 144 void Reset();
146 145
147 string16 query_; 146 string16 query_;
148 bool verbatim_; 147 bool verbatim_;
149 size_t selection_start_; 148 size_t selection_start_;
150 size_t selection_end_; 149 size_t selection_end_;
151 int start_margin_; 150 int start_margin_;
152 gfx::Rect popup_bounds_; 151 gfx::Rect popup_bounds_;
153 bool is_key_capture_enabled_; 152 bool is_key_capture_enabled_;
154 ThemeBackgroundInfo theme_info_; 153 ThemeBackgroundInfo theme_info_;
155 bool display_instant_results_; 154 bool display_instant_results_;
156 string16 omnibox_font_; 155 string16 omnibox_font_;
157 size_t omnibox_font_size_; 156 size_t omnibox_font_size_;
158 InstantRestrictedIDCache<InstantAutocompleteResult> 157 InstantRestrictedIDCache<InstantAutocompleteResult>
159 autocomplete_results_cache_; 158 autocomplete_results_cache_;
160 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 159 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
161 160
162 DISALLOW_COPY_AND_ASSIGN(SearchBox); 161 DISALLOW_COPY_AND_ASSIGN(SearchBox);
163 }; 162 };
164 163
165 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 164 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698