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

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

Issue 2151483004: Remove embeddedSearch.newTabPage.GetAppLauncherEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused include, rebase Created 4 years, 4 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. 122 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser.
123 void StopCapturingKeyStrokes(); 123 void StopCapturingKeyStrokes();
124 124
125 // Sends ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions to the 125 // Sends ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions to the
126 // browser. 126 // browser.
127 void UndoAllMostVisitedDeletions(); 127 void UndoAllMostVisitedDeletions();
128 128
129 // Sends ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion to the browser. 129 // Sends ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion to the browser.
130 void UndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id); 130 void UndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id);
131 131
132 bool app_launcher_enabled() const { return app_launcher_enabled_; }
133 bool is_focused() const { return is_focused_; } 132 bool is_focused() const { return is_focused_; }
134 bool is_input_in_progress() const { return is_input_in_progress_; } 133 bool is_input_in_progress() const { return is_input_in_progress_; }
135 bool is_key_capture_enabled() const { return is_key_capture_enabled_; } 134 bool is_key_capture_enabled() const { return is_key_capture_enabled_; }
136 bool display_instant_results() const { return display_instant_results_; } 135 bool display_instant_results() const { return display_instant_results_; }
137 const base::string16& query() const { return query_; } 136 const base::string16& query() const { return query_; }
138 const InstantSuggestion& suggestion() const { return suggestion_; } 137 const InstantSuggestion& suggestion() const { return suggestion_; }
139 138
140 private: 139 private:
141 // Overridden from content::RenderViewObserver: 140 // Overridden from content::RenderViewObserver:
142 bool OnMessageReceived(const IPC::Message& message) override; 141 bool OnMessageReceived(const IPC::Message& message) override;
143 void OnDestruct() override; 142 void OnDestruct() override;
144 143
145 void OnSetPageSequenceNumber(int page_seq_no); 144 void OnSetPageSequenceNumber(int page_seq_no);
146 void OnChromeIdentityCheckResult(const base::string16& identity, 145 void OnChromeIdentityCheckResult(const base::string16& identity,
147 bool identity_match); 146 bool identity_match);
148 void OnDetermineIfPageSupportsInstant(); 147 void OnDetermineIfPageSupportsInstant();
149 void OnFocusChanged(OmniboxFocusState new_focus_state, 148 void OnFocusChanged(OmniboxFocusState new_focus_state,
150 OmniboxFocusChangeReason reason); 149 OmniboxFocusChangeReason reason);
151 void OnHistorySyncCheckResult(bool sync_history); 150 void OnHistorySyncCheckResult(bool sync_history);
152 void OnMostVisitedChanged( 151 void OnMostVisitedChanged(
153 const std::vector<InstantMostVisitedItem>& items); 152 const std::vector<InstantMostVisitedItem>& items);
154 void OnPromoInformationReceived(bool is_app_launcher_enabled);
155 void OnSetDisplayInstantResults(bool display_instant_results); 153 void OnSetDisplayInstantResults(bool display_instant_results);
156 void OnSetInputInProgress(bool input_in_progress); 154 void OnSetInputInProgress(bool input_in_progress);
157 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion); 155 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion);
158 void OnSubmit(const base::string16& query, 156 void OnSubmit(const base::string16& query,
159 const EmbeddedSearchRequestParams& params); 157 const EmbeddedSearchRequestParams& params);
160 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 158 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
161 159
162 // Returns the current zoom factor of the render view or 1 on failure. 160 // Returns the current zoom factor of the render view or 1 on failure.
163 double GetZoom() const; 161 double GetZoom() const;
164 162
165 // Sets the searchbox values to their initial value. 163 // Sets the searchbox values to their initial value.
166 void Reset(); 164 void Reset();
167 165
168 // Returns the URL of the Most Visited item specified by the |item_id|. 166 // Returns the URL of the Most Visited item specified by the |item_id|.
169 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const; 167 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const;
170 168
171 int page_seq_no_; 169 int page_seq_no_;
172 bool app_launcher_enabled_;
173 bool is_focused_; 170 bool is_focused_;
174 bool is_input_in_progress_; 171 bool is_input_in_progress_;
175 bool is_key_capture_enabled_; 172 bool is_key_capture_enabled_;
176 bool display_instant_results_; 173 bool display_instant_results_;
177 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 174 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
178 ThemeBackgroundInfo theme_info_; 175 ThemeBackgroundInfo theme_info_;
179 base::string16 query_; 176 base::string16 query_;
180 EmbeddedSearchRequestParams embedded_search_request_params_; 177 EmbeddedSearchRequestParams embedded_search_request_params_;
181 InstantSuggestion suggestion_; 178 InstantSuggestion suggestion_;
182 179
183 DISALLOW_COPY_AND_ASSIGN(SearchBox); 180 DISALLOW_COPY_AND_ASSIGN(SearchBox);
184 }; 181 };
185 182
186 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 183 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698