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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h

Issue 1855423003: Interpret '?' and Ctrl-K or Ctrl-E as putting omnibox in keyword search mode for Default Search Pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted autocomplete_text_field* Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 AutocompleteTextField* field_; // owned by tab controller 197 AutocompleteTextField* field_; // owned by tab controller
198 198
199 // Selection at the point where the user started using the 199 // Selection at the point where the user started using the
200 // arrows to move around in the popup. 200 // arrows to move around in the popup.
201 NSRange saved_temporary_selection_; 201 NSRange saved_temporary_selection_;
202 202
203 // Tracking state before and after a possible change for reporting 203 // Tracking state before and after a possible change for reporting
204 // to model_. 204 // to model_.
205 NSRange selection_before_change_; 205 NSRange selection_before_change_;
206 base::string16 text_before_change_; 206 base::string16 text_before_change_;
207 base::string16 keyword_before_change_;
208 bool is_keyword_selected_before_change_;
207 NSRange marked_range_before_change_; 209 NSRange marked_range_before_change_;
208 210
209 // Was delete pressed? 211 // Was delete pressed?
210 bool delete_was_pressed_; 212 bool delete_was_pressed_;
211 213
212 // Was the delete key pressed with an empty selection at the end of the edit? 214 // Was the delete key pressed with an empty selection at the end of the edit?
213 bool delete_at_end_pressed_; 215 bool delete_at_end_pressed_;
214 216
215 base::string16 suggest_text_; 217 base::string16 suggest_text_;
216 218
217 // State used to coalesce changes to text and selection to avoid drawing 219 // State used to coalesce changes to text and selection to avoid drawing
218 // transient state. 220 // transient state.
219 bool in_coalesced_update_block_; 221 bool in_coalesced_update_block_;
220 bool do_coalesced_text_update_; 222 bool do_coalesced_text_update_;
221 base::string16 coalesced_text_update_; 223 base::string16 coalesced_text_update_;
222 bool do_coalesced_range_update_; 224 bool do_coalesced_range_update_;
223 NSRange coalesced_range_update_; 225 NSRange coalesced_range_update_;
224 226
225 // The time of the first character insert operation that has not yet been 227 // The time of the first character insert operation that has not yet been
226 // painted. Used to measure omnibox responsiveness with a histogram. 228 // painted. Used to measure omnibox responsiveness with a histogram.
227 base::TimeTicks insert_char_time_; 229 base::TimeTicks insert_char_time_;
228 230
229 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); 231 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac);
230 }; 232 };
231 233
232 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 234 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698